Skip to content

Commit

Permalink
Bug fix. Wrong bytes to megabytes conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Sveredyuk committed Jan 9, 2018
1 parent f325325 commit 7b80d5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/health_monitor/providers/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def redis
end

def bytes_to_megabytes(bytes)
(bytes.to_f / 1024 / 1024 * 100).round
(bytes.to_f / 1024 / 1024).round
end

def used_memory_mb
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module HealthMonitor
VERSION = '7.5.0'.freeze
VERSION = '7.5.1'.freeze
end
2 changes: 1 addition & 1 deletion spec/support/providers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def stub_redis_failure
end

def stub_redis_max_user_memory_failure
allow_any_instance_of(Redis).to receive(:info).and_return('used_memory' => '10000000')
allow_any_instance_of(Redis).to receive(:info).and_return('used_memory' => '1000000000')
end

def stub_resque_failure
Expand Down

0 comments on commit 7b80d5c

Please sign in to comment.