diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-06 11:29:49 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-06 11:29:49 -0800 |
commit | 79af7637dcba8aa1d9f52655800e4ef7caedb03c (patch) | |
tree | 0e196105fe2ba5b2ceea6f11c76094616260c49f | |
parent | 930dc66bab7fde6fd185552f58f68dc6599df17f (diff) | |
download | vyatta-nat-79af7637dcba8aa1d9f52655800e4ef7caedb03c.tar.gz vyatta-nat-79af7637dcba8aa1d9f52655800e4ef7caedb03c.zip |
fix for bug 2963: handle "KMG" counter representations.
-rwxr-xr-x | scripts/vyatta-show-nat.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl index 7997d48..9d2b4ff 100755 --- a/scripts/vyatta-show-nat.pl +++ b/scripts/vyatta-show-nat.pl @@ -31,7 +31,7 @@ while (<STATS>) { } if ($skey ne "" && (m/SNAT/ || m/DNAT/ || m/MASQUERADE/ || m/RETURN/)) { - m/^\s*(\d+)\s+(\d+)\s/; + m/^\s*(\d+[KMG]?)\s+(\d+[KMG]?)\s/; push @{$stats{$skey}}, ($1, $2); } } |