1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-08 14:28:36 +02:00

added user-friendly KB unit

This commit is contained in:
Grigory Smolkin 2018-01-24 04:58:54 +03:00
parent 5466ab6b99
commit 99d0e6e68a

View File

@ -86,6 +86,7 @@ static const unit_conversion memory_unit_conversion_table[] =
{"TB", OPTION_UNIT_KB, 1024 * 1024 * 1024},
{"GB", OPTION_UNIT_KB, 1024 * 1024},
{"MB", OPTION_UNIT_KB, 1024},
{"KB", OPTION_UNIT_KB, 1},
{"kB", OPTION_UNIT_KB, 1},
{"TB", OPTION_UNIT_BLOCKS, (1024 * 1024 * 1024) / (BLCKSZ / 1024)},