commit a51421793eb37bf5222085f7e07d442956c3e7cc
parent 5bfc658a43235603a38291c6a50b115e409e8906
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Thu, 29 Nov 2007 18:03:54 +0000
protect sup-sync against infinity
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@735 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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