From e145ab1abf091802da4aad8e9106d2c234f9251e Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Wed, 23 May 2012 09:33:59 +0200 Subject: must provide the actual width when finding max or consolidation will cause problems - thanks david for the hint! --- lib/Smokeping.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 6bb07bc..2d6e1e5 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -971,6 +971,7 @@ sub findmax ($$) { $start = exp2seconds($start); my ($graphret,$xs,$ys) = RRDs::graph ("dummy", '--start', -$start, + '--width',$cfg->{Presentation}{overview}{width}, '--end','-'.int($start / $cfg->{Presentation}{detail}{width}), "DEF:maxping=${rrd}:median:AVERAGE", 'PRINT:maxping:MAX:%le' ); -- cgit v1.2.3-24-g4f1b