Permalink
Browse files

Merge branch 'master' of github.com:johnewart/ruby-metrics

  • Loading branch information...
2 parents 85677bd + 2638c94 commit 68685ecdeb0ac2222803988188d7d069f3b72200 @johnewart committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby-metrics/statistics/exponential_sample.rb
@@ -37,7 +37,7 @@ def update_with_timestamp(value, timestamp)
@values[priority] = value
else
firstkey = @values.keys[0]
- if (firstkey < priority)
+ if firstkey && (firstkey < priority)
@values[priority] = value
while(@values.delete(firstkey) == nil)

0 comments on commit 68685ec

Please sign in to comment.