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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy