diff options
author | Bruce Momjian | 2011-01-26 16:02:52 +0000 |
---|---|---|
committer | Bruce Momjian | 2011-01-26 16:02:52 +0000 |
commit | 00869024cb0164969957c1b3e8f6a11242a939e9 (patch) | |
tree | 0262a7f1b4d2ebac1305c513abf181216b95e603 | |
parent | 159e3d86292cfec2a2828f9f69ac7a6cb1be242d (diff) |
In pg_test_fsync, use K(1024) rather than k(1000) for write size units.
-rw-r--r-- | contrib/pg_test_fsync/pg_test_fsync.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c index a3a49a1fa7..23800d6033 100644 --- a/contrib/pg_test_fsync/pg_test_fsync.c +++ b/contrib/pg_test_fsync/pg_test_fsync.c @@ -175,9 +175,9 @@ test_sync(int writes_per_op) bool fs_warning = false; if (writes_per_op == 1) - printf("\nCompare file sync methods using one %dk write:\n", XLOG_BLCKSZ_K); + printf("\nCompare file sync methods using one %dK write:\n", XLOG_BLCKSZ_K); else - printf("\nCompare file sync methods using two %dk writes:\n", XLOG_BLCKSZ_K); + printf("\nCompare file sync methods using two %dK writes:\n", XLOG_BLCKSZ_K); printf("(in wal_sync_method preference order, except fdatasync\n"); printf("is Linux's default)\n"); @@ -391,14 +391,14 @@ static void test_open_syncs(void) { printf("\nCompare open_sync with different write sizes:\n"); - printf("(This is designed to compare the cost of writing 16k\n"); + printf("(This is designed to compare the cost of writing 16K\n"); printf("in different write open_sync sizes.)\n"); - test_open_sync("16k open_sync write", 16); - test_open_sync(" 8k open_sync writes", 8); - test_open_sync(" 4k open_sync writes", 4); - test_open_sync(" 2k open_sync writes", 2); - test_open_sync(" 1k open_sync writes", 1); + test_open_sync("16K open_sync write", 16); + test_open_sync(" 8K open_sync writes", 8); + test_open_sync(" 4K open_sync writes", 4); + test_open_sync(" 2K open_sync writes", 2); + test_open_sync(" 1K open_sync writes", 1); } /* @@ -517,7 +517,7 @@ test_non_sync(void) /* * Test a simple write without fsync */ - printf("\nNon-sync'ed %dk writes:\n", XLOG_BLCKSZ_K); + printf("\nNon-Sync'ed %dK writes:\n", XLOG_BLCKSZ_K); printf(LABEL_FORMAT, "write"); fflush(stdout); |