gerbilcharts 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,13 +46,17 @@ class BucketizedTimeSeriesGraphModel < TimeSeriesGraphModel
46
46
  # subsequent times
47
47
  if buckettm_in== latest_x
48
48
  ynew = bucketize(y_val)
49
- else
49
+ elsif buckettm_in > latest_x
50
50
  npad = bucket_diff(latest_x,buckettm_in)
51
51
  if (npad > 1)
52
52
  pad_empty_buckets(latest_x,npad-1)
53
53
  end
54
54
  super(buckettm_in,y_val)
55
55
  @samp_count=1
56
+ else
57
+ # ignoring out of order data point
58
+ # otherwise pad_empty_buckets will loop endlessly and
59
+ # eat up memory ! reported on Forums (check it out)
56
60
  end
57
61
  end
58
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerbilcharts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-03 00:00:00.000000000 Z
12
+ date: 2013-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  segments:
182
182
  - 0
183
- hash: 4513405572357930179
183
+ hash: 216602382949750896
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  none: false
186
186
  requirements: