diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/build_commands.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 97a3fdafde0..40db368bfe8 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -9,6 +9,7 @@ from __future__ import print_function, unicode_literals +import datetime import os import os.path as path import sys @@ -85,7 +86,7 @@ def notify_build_done(elapsed): """Generate desktop notification when build is complete and the elapsed build time was longer than 30 seconds.""" if elapsed > 30: - notify("Servo build", "Completed in %0.2fs" % elapsed) + notify("Servo build", "Completed in %s" % str(datetime.timedelta(seconds=elapsed))) def notify(title, text): @@ -246,7 +247,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value notify_build_done(elapsed) - print("Build completed in %0.2fs" % elapsed) + print("Build completed in %s" % str(datetime.timedelta(seconds=elapsed))) return status @Command('build-cef', @@ -282,7 +283,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value notify_build_done(elapsed) - print("CEF build completed in %0.2fs" % elapsed) + print("CEF build completed in %s" % str(datetime.timedelta(seconds=elapsed))) return ret @@ -319,7 +320,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value notify_build_done(elapsed) - print("GeckoLib build completed in %0.2fs" % elapsed) + print("GeckoLib build completed in %s" % str(datetime.timedelta(seconds=elapsed))) return ret @@ -357,7 +358,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value notify_build_done(elapsed) - print("Gonk build completed in %0.2fs" % elapsed) + print("Gonk build completed in %s" % str(datetime.timedelta(seconds=elapsed))) return ret |