From a51421793eb37bf5222085f7e07d442956c3e7cc Mon Sep 17 00:00:00 2001 From: wmorgan Date: Thu, 29 Nov 2007 18:03:54 +0000 Subject: [PATCH] protect sup-sync against infinity git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@735 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- bin/sup-sync | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.45.2