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:
commit
931233d003
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue