From 3e6358720b5a8d256a082139e38230c1f815740f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 23 Feb 2007 21:34:02 +0000 Subject: Utils.secs_to_string now convert seconds to integers instead of displaying ridiculously long floating values --- lib/rbot/core/utils/utils.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index ac60735d..bd35d8d0 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -328,6 +328,7 @@ module ::Irc secs_to_string_case(ret, hours, "hour", "hours") if hours > 0 mins, secs = secs.divmod SEC_PER_MIN secs_to_string_case(ret, mins, "minute", "minutes") if mins > 0 + secs = secs.to_i secs_to_string_case(ret, secs, "second", "seconds") if secs > 0 or ret.empty? case ret.length when 0 -- cgit v1.2.3