Skip to content

Commit

Permalink
Remove RRD max limit of 180 - so that the RRD can store values larger…
Browse files Browse the repository at this point in the history
… than 180 (e.g. for non-time data).
  • Loading branch information
mad-ady committed Jun 11, 2015
1 parent 943f986 commit 6041983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Smokeping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ sub init_target_tree ($$$$) {
($name.$s.".rrd", "--start",(time-1),"--step",$step,
"DS:uptime:GAUGE:".(2*$step).":0:U",
"DS:loss:GAUGE:".(2*$step).":0:".$pings,
"DS:median:GAUGE:".(2*$step).":0:180",
(map { "DS:ping${_}:GAUGE:".(2*$step).":0:180" }
"DS:median:GAUGE:".(2*$step).":0:U",
(map { "DS:ping${_}:GAUGE:".(2*$step).":0:U" }
1..$pings),
(map { "RRA:".(join ":", @{$_}) } @{$cfg->{Database}{_table}} ));
if (not -f $name.$s.".rrd"){
Expand Down

0 comments on commit 6041983

Please sign in to comment.