Fix a stupid bug
This commit is contained in:
parent
5a6a44e484
commit
c1cb22c40f
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void measure_summary(struct measure_params* mp, struct measure_state* ms) {
|
||||||
if ((fbin = fopen(bin, "a+")) == NULL) goto measurement_io_error;
|
if ((fbin = fopen(bin, "a+")) == NULL) goto measurement_io_error;
|
||||||
if (fwrite(ms->uuid, sizeof(uuid_t), 1, fbin) != 1) goto measurement_io_error;
|
if (fwrite(ms->uuid, sizeof(uuid_t), 1, fbin) != 1) goto measurement_io_error;
|
||||||
if (fwrite(&mp->max_measure, sizeof(uint64_t), 1, fbin) != 1) goto measurement_io_error;
|
if (fwrite(&mp->max_measure, sizeof(uint64_t), 1, fbin) != 1) goto measurement_io_error;
|
||||||
if (fwrite(&ms->log, sizeof(uint64_t), mp->max_measure, fbin) != mp->max_measure) goto measurement_io_error;
|
if (fwrite(ms->log, sizeof(uint64_t), mp->max_measure, fbin) != mp->max_measure) goto measurement_io_error;
|
||||||
if (fclose(fbin) != 0) goto measurement_io_error;
|
if (fclose(fbin) != 0) goto measurement_io_error;
|
||||||
printf("saved raw data as %s\n", bin);
|
printf("saved raw data as %s\n", bin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue