mirror of https://github.com/mikaku/Monitorix.git
fixed the fetching code to retrieve the uptime value in 'redis.pm' #140
This commit is contained in:
parent
5fe541fa04
commit
98eda3e8e5
|
@ -479,9 +479,11 @@ sub redis_cgi {
|
|||
}
|
||||
|
||||
my (undef, undef, undef, $data) = RRDs::fetch("$rrd",
|
||||
"--resolution=60",
|
||||
"--start=-1min",
|
||||
"AVERAGE",
|
||||
"-r 60");
|
||||
"AVERAGE");
|
||||
$err = RRDs::error;
|
||||
push(@output, "ERROR: while fetching $rrd: $err\n") if $err;
|
||||
my $line = @$data[0];
|
||||
my ($uptime) = @$line[$e * 28];
|
||||
my $uptimeline;
|
||||
|
|
Loading…
Reference in New Issue