projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dc15e3
)
In test_fsync, use #define for printf format of ops/sec.
author
Bruce Momjian
<bruce@momjian.us>
Sun, 16 Jan 2011 13:36:43 +0000
(08:36 -0500)
committer
Bruce Momjian
<bruce@momjian.us>
Sun, 16 Jan 2011 13:36:43 +0000
(08:36 -0500)
src/tools/fsync/test_fsync.c
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/fsync/test_fsync.c
b/src/tools/fsync/test_fsync.c
index 5a7c0d5c3c1ac4e125da805e1ea1d6b231f77bb9..c0c58f67d2560899125accdee46d69c307b9e916 100644
(file)
--- a/
src/tools/fsync/test_fsync.c
+++ b/
src/tools/fsync/test_fsync.c
@@
-33,7
+33,7
@@
#define LABEL_FORMAT " %-32s"
#define NA_FORMAT LABEL_FORMAT "%18s"
-
+#define OPS_FORMAT "%9.3f ops/sec"
int ops_per_test = 2000;
char full_buf[XLOG_SEG_SIZE], *buf, *filename = FSYNC_FILENAME;
@@
-555,7
+555,7
@@
print_elapse(struct timeval start_t, struct timeval stop_t)
(stop_t.tv_usec - start_t.tv_usec) * 0.000001;
double per_second = ops_per_test / total_time;
- printf(
"%9.3f ops/sec
\n", per_second);
+ printf(
OPS_FORMAT "
\n", per_second);
}
void