commit | 5a66fe45d99351c7b96ea68595053a6be5a2529c | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Wed Aug 15 11:21:59 2001 +0000 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Aug 15 11:21:59 2001 +0000 |
tree | 37429fb13c1526b11097d3316119864e505baf2b | |
parent | a7e5b8f328b5e9189a56342ad5f092418c840f57 [diff] |
Added (and tested!) terabyte printing.
diff --git a/iptables.c b/iptables.c index 7f4c892..35adc2b 100644 --- a/iptables.c +++ b/iptables.c
@@ -1040,7 +1040,11 @@ number = (number + 500) / 1000; if (number > 9999) { number = (number + 500) / 1000; - printf(FMT("%4lluG ","%lluG "),number); + if (number > 9999) { + number = (number + 500) / 1000; + printf(FMT("%4lluT ","%lluT "), number); + } + else printf(FMT("%4lluG ","%lluG "), number); } else printf(FMT("%4lluM ","%lluM "), number); } else