Commit d2f250b3 authored by ericw's avatar ericw
Browse files

Change to elapsed time printout

parent 2b628be8
......@@ -10,7 +10,7 @@ Tests the local FroNtier squid
# 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml
# contains the location of the local FroNtier squid server
#
__revision__ = "$Id: test_squid.py,v 1.4 2007/02/16 17:03:44 ericw Exp $"
__revision__ = "$Id: test_squid.py,v 1.5 2007/02/20 17:03:44 ericw Exp $"
import os
import sys
import urllib2
......@@ -160,7 +160,7 @@ if statsFlag:
print duration, size, size/duration
else:
print "Query ended: ", time.strftime("%m/%d/%y %H:%M:%S %Z", queryEnd)
print "Query time: %s [seconds]\n" % (t2-t1)
print "Query time: %0.2f [seconds]\n" % (t2-t1)
#
# Print out result
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment