summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-show-nat.pl2
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);
}
}