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 end
def round(rate) def round(rate)
case rate if rate > 100
when rate > 100
rate.round 2 rate.round 2
when rate > 10 elsif rate > 10
rate.round 3 rate.round 3
else else
rate.round 4 rate.round 4