1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Merge pull request #504 from stephankn/patch-1

Fix issue with $uptime being undefined
This commit is contained in:
Steve Schnepp 2014-07-17 10:12:32 +02:00
commit 931233d003

View file

@ -208,8 +208,8 @@ sub uptime {
my $puptime = "/proc/uptime";
open( TIME, "<", $puptime ) || die "Unable to read $puptime: $!";
while (<TIME>) {
split;
$uptime = @_[0];
my @arr = split;
$uptime = $arr[0];
}
close(TIME);
chomp $uptime;