sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 92641da45c4f6cadb2f69eb99563c911ba78ceeb
parent 1632775558957d6c181d157deef5c98bdf3ff1fa
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sat,  6 Jan 2007 04:10:42 +0000

fixed "1 hours" => "one hour"


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@203 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/util.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -228,7 +228,7 @@ class Time
         ["month", 12],
         ["year", nil],
       ].argfind do |unit, size|
-        if diff <= 1
+        if diff.round <= 1
           "one #{unit}"
         elsif size.nil? || diff.round < size
           "#{diff.round} #{unit}s"