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:
parent
5466ab6b99
commit
99d0e6e68a
@ -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)},
|
||||
|
Loading…
x
Reference in New Issue
Block a user