diff options
Diffstat (limited to 'src/tools/fsync/test_fsync.c')
-rw-r--r-- | src/tools/fsync/test_fsync.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/fsync/test_fsync.c b/src/tools/fsync/test_fsync.c index 7c8b4856ea5..42701767b95 100644 --- a/src/tools/fsync/test_fsync.c +++ b/src/tools/fsync/test_fsync.c @@ -29,7 +29,7 @@ #endif #endif -#define WAL_FILE_SIZE (16 * 1024 * 1024) +#define WAL_FILE_SIZE (16 * 1024 * 1024) void die(char *str); void print_elapse(struct timeval start_t, struct timeval elapse_t); @@ -41,20 +41,20 @@ main(int argc, char *argv[]) struct timeval elapse_t; int tmpfile, i, - loops=1000; + loops = 1000; char *strout = (char *) malloc(WAL_FILE_SIZE); char *filename = FSYNC_FILENAME; - if (argc > 2 && strcmp(argv[1],"-f") == 0) + if (argc > 2 && strcmp(argv[1], "-f") == 0) { filename = argv[2]; argv += 2; argc -= 2; } - + if (argc > 1) - loops = atoi(argv[1]); - + loops = atoi(argv[1]); + for (i = 0; i < WAL_FILE_SIZE; i++) strout[i] = 'a'; |