Add -b / --use-bit option to display rates in bit/s instead of bytes/s

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf
2014-05-08 15:16:38 +02:00
parent 127ffda015
commit 46ec101b00
6 changed files with 56 additions and 20 deletions

View File

@ -33,17 +33,25 @@
* div = { 1, 1000, 1000000, 1000000000, 1000000000000 }
* txt = { "B", "KB", "MB", "GB", "TB" }
* }
* variant bit {
* div = { 0.125, 125, 125000, 125000000, 125000000000 }
* txt = { "b", "Kb", "Mb", "Gb", "Tb" }
* }
* }
*
* unit bit {
* variant default {
* div = { 1, 1024, 1048576, 1073741824, 1099511627776}
* txt = { "b", "Kib", "Mib", "Gib", "TiB" }
* div = { 1, 1000, 1000000, 1000000000, 1000000000000 }
* txt = { "b", "Kb", "Mb", "Gb", "Tb" }
* }
* variant si {
* div = { 1, 1000, 1000000, 1000000000, 1000000000000 }
* txt = { "b", "Kb", "Mb", "Gb", "Tb" }
* }
* variant bit {
* div = { 1, 1000, 1000000, 1000000000, 1000000000000 }
* txt = { "b", "Kb", "Mb", "Gb", "Tb" }
* }
* }
*
* unit number {