diff options
-rw-r--r-- | fwbench.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -111,7 +111,7 @@ void Usage(int argc, char* const argv[], const char *format, ...) { " -n frames - Number of frames to write\n" " -g <width>x<height> - Geometry [1024]\n" " -g <pixels> - Number of megapixels [0.7]\n" -" -m <percent> - Tolerable missing frames [100%%]\n" +" -m <percent> - Tolerable missing frames [100%%]\n" " -q - Quiete\n" " -h - Help\n" "\n\n", @@ -173,7 +173,7 @@ static void set_time(setup_t *setup, size_t run_time) { } static void set_size(setup_t *setup, size_t size) { - setup->iters = size / setup->frame_size + (size % setup->frame_size)?1:0; + setup->iters = size / setup->frame_size + ((size % setup->frame_size)?1:0); } static void set_frames_per_file(setup_t *setup, size_t fpf) { @@ -521,7 +521,8 @@ int main(int argc, char* const argv[]) result = read(fd, buffer, setup.frame_size - setup.num_read); } - printf("Wrote %lu GB\n", setup.frame_size * setup.frames / 1024 / 1024 / 1024); + if (!quiet) + printf("Wrote %lu GB\n", setup.frame_size * setup.frames / 1024 / 1024 / 1024); g_thread_join(thr); |