diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-10-09 14:03:19 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-10-09 15:39:03 +0000 |
commit | 806ad46a59e4f8b1b889b66682cedb016f6fe323 (patch) | |
tree | acdff2d24d1aa79966de85672b7cd71c0292dbb5 /bin/reproducible_html_live_status.py | |
parent | d0cfea3f0c2842835de58322b9ecb1f0a48125c1 (diff) | |
download | jenkins.debian.net-806ad46a59e4f8b1b889b66682cedb016f6fe323.tar.xz |
reproducible: move convert_into_hms_string() from _html_live_status to _common
Diffstat (limited to 'bin/reproducible_html_live_status.py')
-rwxr-xr-x | bin/reproducible_html_live_status.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py index 685fb97b..fbb78a11 100755 --- a/bin/reproducible_html_live_status.py +++ b/bin/reproducible_html_live_status.py @@ -11,22 +11,6 @@ from reproducible_common import * from reproducible_html_indexes import build_leading_text_section -def convert_into_hms_string(duration): - if not duration: - duration = '' - else: - duration = int(duration) - hours = int(duration/3600) - minutes = int((duration-(hours*3600))/60) - seconds = int(duration-(hours*3600)-(minutes*60)) - duration = '' - if hours > 0: - duration = str(hours)+'h ' + str(minutes)+'m ' + str(seconds) + 's' - elif minutes > 0: - duration = str(minutes)+'m ' + str(seconds) + 's' - else: - duration = str(seconds)+'s' - return duration def generate_schedule(arch): """ the schedule pages are very different than others index pages """ |