scripts/supybot: use %.2f for rounding

This commit is contained in:
James Lu 2015-04-11 13:33:34 -07:00
parent fc418d35b0
commit 6fa96df607

View File

@ -132,7 +132,7 @@ def main():
seconds = now - world.startedAt
log.info('Total uptime: %s.', utils.gen.timeElapsed(seconds))
(user, system, _, _, _) = os.times()
log.info('Total CPU time taken: %s seconds.', round(user+system, 2))
log.info('Total CPU time taken: %.2f seconds.', user+system)
log.info('No more Irc objects, exiting.')
if __name__ == '__main__':