summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-qos-util.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/vyatta-qos-util.pl b/scripts/vyatta-qos-util.pl
index 6dae105..1d4e754 100755
--- a/scripts/vyatta-qos-util.pl
+++ b/scripts/vyatta-qos-util.pl
@@ -56,10 +56,10 @@ GetOptions(
"time=s" => \$timeval,
) or usage();
-getPercent($percent) if $percent;
-getPercentOrRate($percentrate) if $percentrate;
-getRate($rate) if $rate;
-getBurstSize($burst) if $burst;
-getProtocol($protocol) if $protocol;
-getDsfield($dscp) if $dscp;
-getTime($timeval) if $timeval;
+getPercent($percent) if defined($percent);
+getPercentOrRate($percentrate) if defined($percentrate);
+getRate($rate) if defined($rate);
+getBurstSize($burst) if defined($burst);
+getProtocol($protocol) if defined($protocol);
+getDsfield($dscp) if defined($dscp);
+getTime($timeval) if defined($timeval);