Handle case with no current work
[infodrom/icinga-plugins] / check_uucp
index 0526dd6..af956cd 100755 (executable)
@@ -97,7 +97,7 @@ unless (defined $oldlist) {
 }
 
 if (scalar @$oldlist > 0) {
-    printf "UUCP WARNING - %s: %d jobs older than %d hours\n", $host, scalar @$list, scalar @$list, $config->{crit_hours};
+    printf "UUCP WARNING - %s: %d jobs older than %d hours\n", $host, scalar @$list, $config->{crit_hours};
     exit $ERRORS{WARNING};
 }