Bugfix JSON header (allows parsing at line 0).

master
Julian M. Kunkel 2018-10-11 18:46:42 +01:00
parent bd53ce959d
commit fa38cb7992
1 changed files with 6 additions and 3 deletions

View File

@ -241,8 +241,12 @@ void PrintEarlyHeader()
if (rank != 0)
return;
fprintf(out_resultfile, "IOR-" META_VERSION ": MPI Coordinated Test of Parallel I/O\n");
fflush(out_resultfile);
PrintStartSection();
if (outputFormat != OUTPUT_DEFAULT){
PrintKeyVal("Version", META_VERSION);
}else{
printf("IOR-" META_VERSION ": MPI Coordinated Test of Parallel I/O\n");
}
}
void PrintHeader(int argc, char **argv)
@ -252,7 +256,6 @@ void PrintHeader(int argc, char **argv)
if (rank != 0)
return;
PrintStartSection();
PrintKeyVal("Began", CurrentTimeString());
PrintKeyValStart("Command line");