Merge pull request #1090 from GLolol/scripts/round-cpu-time

scripts/supybot: round total CPU time to 2 decimal places
This commit is contained in:
Valentin Lorentz 2015-04-11 22:35:53 +02:00
commit e937128c69

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.', user+system)
log.info('Total CPU time taken: %.2f seconds.', user+system)
log.info('No more Irc objects, exiting.')
if __name__ == '__main__':