diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | latency.c | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -30,6 +30,8 @@ For bandwidth you can specify: * **K** (1024 bytes/s) * **m** (1000000 bytes/s) * **M** (1048576 bytes/s) + * **g** (1000000000 bytes/s) + * **G** (1073741824 bytes/s) Also adding **bit** (ie **Mbit**) to specify bits instead of bytes. @@ -82,10 +82,14 @@ static const unit rate_units[] = { { "K", 1024 }, { "m", 1000000 }, { "M", 1024 * 1024 }, + { "g", 1000000000 }, + { "G", 1024 * 1024 * 1024 }, { "kbit", 1000. / 8. }, { "Kbit", 1024. / 8. }, { "mbit", 1000000. / 8. }, { "Mbit", 1024. * 1024. / 8. }, + { "gbit", 1000000000. / 8. }, + { "Gbit", 1024. * 1024. * 1024./ 8. }, { "", 1 }, { NULL, 0 } }; |
