Fix Snapshot#round

This commit is contained in:
Hakan Ensari 2012-11-23 15:11:00 +00:00
parent e9bd3f3320
commit 59a8a28ddb

View File

@ -37,10 +37,9 @@ class Snapshot
end
def round(rate)
case rate
when rate > 100
if rate > 100
rate.round 2
when rate > 10
elsif rate > 10
rate.round 3
else
rate.round 4