]> git.cworth.org Git - sup/commitdiff
protect sup-sync against infinity
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 29 Nov 2007 18:03:54 +0000 (18:03 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 29 Nov 2007 18:03:54 +0000 (18:03 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@735 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-sync

index ebf4de022103e81977b7726cd08415f4967e5a62..0acb8eddca342bacad9b1a96ece53150fa1b6d8b 100644 (file)
@@ -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