Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e0c2746

Browse files
committed
In test_fsync, use #define for printf format of ops/sec.
1 parent 6dc15e3 commit e0c2746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/fsync/test_fsync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#define LABEL_FORMAT " %-32s"
3535
#define NA_FORMAT LABEL_FORMAT "%18s"
36-
36+
#define OPS_FORMAT "%9.3f ops/sec"
3737

3838
int ops_per_test = 2000;
3939
char full_buf[XLOG_SEG_SIZE], *buf, *filename = FSYNC_FILENAME;
@@ -555,7 +555,7 @@ print_elapse(struct timeval start_t, struct timeval stop_t)
555555
(stop_t.tv_usec - start_t.tv_usec) * 0.000001;
556556
double per_second = ops_per_test / total_time;
557557

558-
printf("%9.3f ops/sec\n", per_second);
558+
printf(OPS_FORMAT "\n", per_second);
559559
}
560560

561561
void

0 commit comments

Comments
 (0)