]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_rateest: streamline case display of units
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 May 2011 15:36:25 +0000 (17:36 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 20 May 2011 14:56:50 +0000 (16:56 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_rateest.c

index e70edc6734e3b32e8565b09c9642766577f24791..509b3e319d7998eea1b8ba9b54110106890dcc96 100644 (file)
@@ -65,11 +65,11 @@ static const struct rate_suffix {
        { "bit",        1. },
        { "Kibit",      1024. },
        { "kbit",       1000. },
-       { "mibit",      1024.*1024. },
+       { "Mibit",      1024.*1024. },
        { "mbit",       1000000. },
-       { "gibit",      1024.*1024.*1024. },
+       { "Gibit",      1024.*1024.*1024. },
        { "gbit",       1000000000. },
-       { "tibit",      1024.*1024.*1024.*1024. },
+       { "Tibit",      1024.*1024.*1024.*1024. },
        { "tbit",       1000000000000. },
        { "Bps",        8. },
        { "KiBps",      8.*1024. },