Skip to content

Commit

Permalink
Allow 'trend.scale' to be a float, used in rrdtool graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
marineam committed Jun 16, 2011
1 parent 7f8e4d3 commit 51e0824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nagcat/graph.py
Expand Up @@ -154,7 +154,7 @@ def _one_ds_args(self, ds):
dsconf.get('label', ds.capitalize()))
default_color = self.color.next()

scale = int(dsconf.get('trend.scale', 0))
scale = float(dsconf.get('trend.scale', 0))
if scale:
args.append("DEF:_raw_%s=%s:%s:AVERAGE" %
(ds, rrd_esc(self.rrd_path), ds))
Expand Down

0 comments on commit 51e0824

Please sign in to comment.