From e1624917ba2ed574fe350b470762a732a9820cbd Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 19 Mar 2008 11:17:46 -0700 Subject: Better validation of numeric input Fix for Bug 2763 and related problems. Need better handling of numeric inputs. Real perl programmers don't use a switch, but hash instead. --- scripts/vyatta-qos-util.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/vyatta-qos-util.pl') diff --git a/scripts/vyatta-qos-util.pl b/scripts/vyatta-qos-util.pl index 36d8a17..545e766 100755 --- a/scripts/vyatta-qos-util.pl +++ b/scripts/vyatta-qos-util.pl @@ -36,7 +36,7 @@ if ( defined $rate ) { } if ( defined $burst ) { - my $b = VyattaQosUtil::getSize($burst); + my $b = VyattaQosUtil::getBurstSize($burst); exit 0; } -- cgit v1.2.3