lib/squid/format.rb in squid-1.0.0.beta3 vs lib/squid/format.rb in squid-1.0.0.beta4
- old
+ new
@@ -14,9 +14,10 @@
else number_to_delimited value.to_i
end.to_s
end
def number_to_minutes_and_seconds(value)
+ return unless value
signum = '-' if value < 0
"#{signum}#{value.abs.round/60}:#{(value.abs.round%60).to_s.rjust 2, '0'}"
end
def number_to_float(value)