Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite0c2746

Browse files
committed
In test_fsync, use #define for printf format of ops/sec.
1 parent6dc15e3 commite0c2746

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
#defineLABEL_FORMAT" %-32s"
3535
#defineNA_FORMATLABEL_FORMAT "%18s"
36-
36+
#defineOPS_FORMAT"%9.3f ops/sec"
3737

3838
intops_per_test=2000;
3939
charfull_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
doubleper_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)

[8]ページ先頭

©2009-2025 Movatter.jp