summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_uptime.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl
index 27dc93f..20234c8 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -85,6 +85,7 @@ if ( $uptime_seconds !~ /^\d+$/ ) {
85 85
86my ( $secs, $mins, $hours, $days, $weeks ); 86my ( $secs, $mins, $hours, $days, $weeks );
87$secs = $uptime_seconds; 87$secs = $uptime_seconds;
88$mins = $hours = $days = $weeks = 0;
88if ( $secs > 100 ) { 89if ( $secs > 100 ) {
89 $mins = int( $secs / 60 ); 90 $mins = int( $secs / 60 );
90 $secs -= $mins * 60; 91 $secs -= $mins * 60;