diff --git a/lib/redis.pm b/lib/redis.pm index 80f6a57..586c9f2 100644 --- a/lib/redis.pm +++ b/lib/redis.pm @@ -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;