[gnome-ostree] plugin: Also coerce milliseconds to float, not int
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] plugin: Also coerce milliseconds to float, not int
- Date: Tue, 21 May 2013 15:09:27 +0000 (UTC)
commit db3dbe55b50c07216d61b7e53125f4c1bbb38bfd
Author: Colin Walters <walters verbum org>
Date: Tue May 21 11:09:13 2013 -0400
plugin: Also coerce milliseconds to float, not int
extras/supybot/GNOMEOSTree/plugin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extras/supybot/GNOMEOSTree/plugin.py b/extras/supybot/GNOMEOSTree/plugin.py
index 2959e9e..ad390bf 100644
--- a/extras/supybot/GNOMEOSTree/plugin.py
+++ b/extras/supybot/GNOMEOSTree/plugin.py
@@ -91,7 +91,7 @@ class GNOMEOSTree(callbacks.Plugin):
msg = "Current " + taskname
success = metadata['success']
success_str = success and 'successful' or 'failed'
- millis = int(metadata['elapsedMillis'])
+ millis = float(metadata['elapsedMillis'])
msg += " %s: %s in %.1f seconds. " % (taskver, success_str, millis / 1000.0)
status_path = os.path.join(current_task_path, 'status.txt')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]