diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-02-20 15:54:08 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-02-20 15:54:08 +0000 |
commit | 73f8faf71120becce89dcb9af965876066d5c858 (patch) | |
tree | 971b114d597fe3f71e6e6eb32a07e74f8d5690c4 | |
parent | ff47b4681dfa16869ac9906d0234701732660792 (diff) |
Correct handling of return value, making sure critical errors are
shown as such.
-rwxr-xr-x | frikanalen/bin/check_frikanalen_future | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frikanalen/bin/check_frikanalen_future b/frikanalen/bin/check_frikanalen_future index 0f11259..f04e386 100755 --- a/frikanalen/bin/check_frikanalen_future +++ b/frikanalen/bin/check_frikanalen_future @@ -55,9 +55,9 @@ for my $url (@{$listref}) { unless ($metaref) { # Critical if less then 24 hours left if ($starttime < $now + 24 * 60 * 60) { - $retval = 2; # CRITICAL + $retval = 2 if $retval < 2; # CRITICAL } else { - $retval = 1; # WARNING + $retval = 1 if $retval < 1; # WARNING } printf("Missing video %d \"%s\" by %s %s. ", $videoId, $title, $org, short_time($start)); |