Skip to content

Commit

Permalink
Merge pull request #13634 from isimluk/euwe-workaround-bigdecimal
Browse files Browse the repository at this point in the history
[EUWE] workaround BigDecimal not working properly on ruby 2.3.1
  • Loading branch information
simaishi authored Jan 24, 2017
2 parents 5c319ab + 0a8a8fd commit 93f9094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/chargeback/consumption_without_rollups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def current_value(metric)
when 'derived_memory_available'
resource.hardware.try(:memory_mb)
when 'derived_vm_allocated_disk_storage'
resource.allocated_disk_storage
resource.allocated_disk_storage.try(:to_f)
end
@value[metric]
end
Expand Down

0 comments on commit 93f9094

Please sign in to comment.