incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1363568 - /incubator/tashi/trunk/src/tashi/utils/timeout.py
Date Thu, 19 Jul 2012 22:07:38 GMT
Author: stroucki
Date: Thu Jul 19 22:07:38 2012
New Revision: 1363568

URL: http://svn.apache.org/viewvc?rev=1363568&view=rev
Log:
timeout: two decimals are enough for printing out the timeout duration

Modified:
    incubator/tashi/trunk/src/tashi/utils/timeout.py

Modified: incubator/tashi/trunk/src/tashi/utils/timeout.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/utils/timeout.py?rev=1363568&r1=1363567&r2=1363568&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/utils/timeout.py (original)
+++ incubator/tashi/trunk/src/tashi/utils/timeout.py Thu Jul 19 22:07:38 2012
@@ -50,7 +50,7 @@ class TimeoutThread:
 		if finished:
 			return rval
 		else: # NOTE: timeout must be set for this to be true.
-			raise TimeoutException("function %s timed out after %f seconds" % (str(self.function),
timeout))
+			raise TimeoutException("function %s timed out after %.2f seconds" % (str(self.function),
timeout))
 
 	def run(self):
 		try:



Mime
View raw message