diff options
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_uptime.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl index 0a13cc0e..ed859ab3 100755 --- a/plugins-scripts/check_uptime.pl +++ b/plugins-scripts/check_uptime.pl | |||
@@ -143,7 +143,7 @@ $msg .= "uptime is $uptime_seconds seconds. "; | |||
143 | $msg .= "Exceeds $out_of_bounds_text threshold. " if $out_of_bounds_text; | 143 | $msg .= "Exceeds $out_of_bounds_text threshold. " if $out_of_bounds_text; |
144 | $msg .= "Running for $pretty_uptime. " if $opt_f; | 144 | $msg .= "Running for $pretty_uptime. " if $opt_f; |
145 | if ( $opt_s ) { | 145 | if ( $opt_s ) { |
146 | chomp( my $up_since = `uptime -s` ); | 146 | my $up_since = strftime( "%Y-%m-%d %H:%M:%S", localtime( time - $uptime_seconds ) ); |
147 | $msg .= "Running since $up_since. "; | 147 | $msg .= "Running since $up_since. "; |
148 | } | 148 | } |
149 | 149 | ||