summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Oetiker <tobi@oetiker.ch>2012-05-23 09:33:59 +0200
committerTobias Oetiker <tobi@oetiker.ch>2012-05-23 09:33:59 +0200
commite145ab1abf091802da4aad8e9106d2c234f9251e (patch)
treeba1ae2ef17d8124129c81f2fce3f551723733815 /lib
parent11838ebc2ae0661130544c383643046803d8d45b (diff)
downloadsmokeping-e145ab1abf091802da4aad8e9106d2c234f9251e.tar.gz
smokeping-e145ab1abf091802da4aad8e9106d2c234f9251e.tar.xz
must provide the actual width when finding max or consolidation will cause problems - thanks david for the hint!
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm1
1 files changed, 1 insertions, 0 deletions
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' );