Skip to content

Commit 4fec63f

Browse files
committed
Per Peter E, use 'kB' for kilobyte, not 'K'.
1 parent 0086902 commit 4fec63f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

contrib/pg_test_fsync/pg_test_fsync.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ test_sync(int writes_per_op)
175175
bool fs_warning = false;
176176

177177
if (writes_per_op == 1)
178-
printf("\nCompare file sync methods using one %dK write:\n", XLOG_BLCKSZ_K);
178+
printf("\nCompare file sync methods using one %dkB write:\n", XLOG_BLCKSZ_K);
179179
else
180-
printf("\nCompare file sync methods using two %dK writes:\n", XLOG_BLCKSZ_K);
180+
printf("\nCompare file sync methods using two %dkB writes:\n", XLOG_BLCKSZ_K);
181181
printf("(in wal_sync_method preference order, except fdatasync\n");
182182
printf("is Linux's default)\n");
183183

@@ -391,14 +391,14 @@ static void
391391
test_open_syncs(void)
392392
{
393393
printf("\nCompare open_sync with different write sizes:\n");
394-
printf("(This is designed to compare the cost of writing 16K\n");
394+
printf("(This is designed to compare the cost of writing 16kB\n");
395395
printf("in different write open_sync sizes.)\n");
396396

397-
test_open_sync("16K open_sync write", 16);
398-
test_open_sync(" 8K open_sync writes", 8);
399-
test_open_sync(" 4K open_sync writes", 4);
400-
test_open_sync(" 2K open_sync writes", 2);
401-
test_open_sync(" 1K open_sync writes", 1);
397+
test_open_sync("16kB open_sync write", 16);
398+
test_open_sync(" 8kB open_sync writes", 8);
399+
test_open_sync(" 4kB open_sync writes", 4);
400+
test_open_sync(" 2kB open_sync writes", 2);
401+
test_open_sync(" 1kB open_sync writes", 1);
402402
}
403403

404404
/*
@@ -517,7 +517,7 @@ test_non_sync(void)
517517
/*
518518
* Test a simple write without fsync
519519
*/
520-
printf("\nNon-Sync'ed %dK writes:\n", XLOG_BLCKSZ_K);
520+
printf("\nNon-Sync'ed %dkB writes:\n", XLOG_BLCKSZ_K);
521521
printf(LABEL_FORMAT, "write");
522522
fflush(stdout);
523523

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