RailsRRDTool 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rrd.rb +1 -1
  2. metadata +1 -1
data/lib/rrd.rb CHANGED
@@ -126,7 +126,7 @@ class RRD
126
126
 
127
127
  begin
128
128
  cmd = "#{rrdpath} graph #{self.sanitize(image_path, 'path')} "
129
- cmd << "-s #{self.sanitize(params[:ago].tv_sec, 'num')} "
129
+ cmd << "-s #{self.sanitize(params[:ago], 'alphanum')} "
130
130
  cmd << "-w #{self.sanitize(params[:width], 'num')} -h #{self.sanitize(params[:height], 'num')} "
131
131
  cmd << "-a #{self.sanitize(params[:image_type], 'imagetype')} "
132
132
  cmd << "-t '#{self.sanitize(params[:title], 'alphanum')}' "
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RailsRRDTool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: