From 79af7637dcba8aa1d9f52655800e4ef7caedb03c Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 6 Mar 2008 11:29:49 -0800 Subject: fix for bug 2963: handle "KMG" counter representations. --- scripts/vyatta-show-nat.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 () { } 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); } } -- cgit v1.2.3