From: wmorgan Date: Thu, 29 Nov 2007 18:03:54 +0000 (+0000) Subject: protect sup-sync against infinity X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a51421793eb37bf5222085f7e07d442956c3e7cc;p=sup protect sup-sync against infinity git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@735 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup-sync b/bin/sup-sync index ebf4de0..0acb8ed 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -7,6 +7,9 @@ require "sup" class Float def to_s; sprintf '%.2f', self; end + def to_time_s + infinite? ? "unknown" : super + end end class Numeric