diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-23 21:34:02 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-23 21:34:02 +0000 |
commit | 3e6358720b5a8d256a082139e38230c1f815740f (patch) | |
tree | 5a04aca34ed16e19def9580be87b8f36b2491af0 | |
parent | 397b61df257f72a8ce90792985f76497ba735da4 (diff) |
Utils.secs_to_string now convert seconds to integers instead of displaying ridiculously long floating values
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |