Permalink
Browse files

Fixed bug with quoting for keys.

  • Loading branch information...
1 parent a7838fb commit 7e1a02be19fb9ada24f5a84e94babf25a8c6dfa1 @mtodd committed Dec 11, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 redis.rb
View
@@ -7,8 +7,8 @@ class Redis < Scout::Plugin
def build_report
info = YAML.load(%x{redis-cli info}.gsub(/:/, ": "))
- report(:used_memory_in_kb => info[:used_memory] / KILOBYTE)
- report(:used_memory_in_mb => info[:used_memory] / MEGABYTE)
+ report('used_memory_in_kb' => info['used_memory'] / KILOBYTE)
+ report('used_memory_in_mb' => info['used_memory'] / MEGABYTE)
# General Stats
%w(used_memory changes_since_last_save).each do |key|

0 comments on commit 7e1a02b

Please sign in to comment.