summaryrefslogtreecommitdiff
path: root/latency.c
diff options
context:
space:
mode:
Diffstat (limited to 'latency.c')
-rw-r--r--latency.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/latency.c b/latency.c
index 5a1e0f5..8a9162a 100644
--- a/latency.c
+++ b/latency.c
@@ -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 }
};