[Pkg-debile-commits] [debile-web] 12/14: improve the display of the run

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Sep 2 15:52:53 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch update-usuability
in repository debile-web.

commit 77c5e3b4f0fbc9efa9c992260f139962b493cee4
Author: Sylvestre Ledru <sylvestre at debian.org>
Date:   Mon Sep 2 12:47:29 2013 +0200

    improve the display of the run
---
 debileweb/blueprints/frontend.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index 3965299..e87b6d2 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -354,7 +354,7 @@ def report(job_id):
     time_diff = job.finished_at - job.assigned_at
     hours, remainder = divmod(time_diff.total_seconds(), 3600)
     minutes, seconds = divmod(remainder, 60)
-    job_info['job_runtime'] = '%d:%02d:%02d' % (hours, minutes, seconds)
+    job_info['job_runtime'] = '%dh %02dm %02ds' % (hours, minutes, seconds)
     job_info['job_runtime_type'] = type(job.finished_at - job.assigned_at)
     job_info['machine_link'] = "/machine/%s" % job.machine.name
     if job.package.type == "source":

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git



More information about the Pkg-debile-commits mailing list