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

Commit 43f6388

Browse files
committed
pg_test_fsync: expand ops/sec display
Expand ops/sec by two digits to maintain alignment on servers with fast I/O subsystems, e.g. can now display < 10M ops/sec with consistent alignment.
1 parent 8359ed8 commit 43f6388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pg_test_fsync/pg_test_fsync.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#define XLOG_BLCKSZ_K (XLOG_BLCKSZ / 1024)
2525

2626
#define LABEL_FORMAT " %-32s"
27-
#define NA_FORMAT "%18s"
28-
#define OPS_FORMAT "%9.3f ops/sec %6.0f usecs/op"
27+
#define NA_FORMAT "%20s"
28+
#define OPS_FORMAT "%11.3f ops/sec %6.0f usecs/op"
2929
#define USECS_SEC 1000000
3030

3131
/* These are macros to avoid timing the function call overhead. */

0 commit comments

Comments
 (0)