summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-04-03 16:37:35 +0200
committerTobi Oetiker <tobi@oetiker.ch>2008-04-03 16:37:35 +0200
commit4654618b5ca4b8c6b3bfb4d508eb1da8c47eddec (patch)
tree428851043d4dc24fca8d14261ce7784e9218e64a
parentd6ea346a961f7579627bb789f875219ae10c8592 (diff)
downloadsmokeping-4654618b5ca4b8c6b3bfb4d508eb1da8c47eddec.tar.gz
smokeping-4654618b5ca4b8c6b3bfb4d508eb1da8c47eddec.tar.xz
display all the smoke even when the graph is limited in height
-rw-r--r--CHANGES3
-rw-r--r--lib/Smokeping.pm4
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index a41e89b..c65cc91 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+* display "all the smoke" even when it gets cut at the top end of the graph
+ --tobi
+
2008/3/29 -- released version 2.3.5
* make slaves kill their old children off before forking new ones when
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 96bed37..13dac78 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1298,7 +1298,7 @@ sub get_detail ($$$$;$){
'--start',$realstart,
($end ne 'last' ? ('--end',$end) : ()),
'--height',$cfg->{Presentation}{detail}{height},
- '--width',,$cfg->{Presentation}{detail}{width},
+ '--width',$cfg->{Presentation}{detail}{width},
'--title',$desc.$from,
'--rigid','--upper-limit', $max->{$s}{$start},
@log,
@@ -1310,7 +1310,7 @@ sub get_detail ($$$$;$){
'--color', 'BACK#ffffff',
'--color', 'CANVAS#ffffff',
(map {"DEF:ping${_}=${rrd}:ping${_}:AVERAGE"} 1..$pings),
- (map {"CDEF:cp${_}=ping${_},0,$max->{$s}{$start},LIMIT"} 1..$pings),
+ (map {"CDEF:cp${_}=ping${_},$max->{$s}{$start},LT,ping${_},INF,IF"} 1..$pings),
("DEF:loss=${rrd}:loss:AVERAGE"),
@upargs,# draw the uptime bg color
@lossargs, # draw the loss bg color