From f474cd7e591ec6cbc80209e00e5abae1dda604cc Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Thu, 1 Nov 2018 00:07:02 -0700 Subject: [PATCH] round durations to 2 digits --- ui/templates/builds.html | 2 +- ui/templates/runner.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/templates/builds.html b/ui/templates/builds.html index 26d500f..a7e8bda 100644 --- a/ui/templates/builds.html +++ b/ui/templates/builds.html @@ -24,7 +24,7 @@ {{build.build_version}} {{build.build_type}} {{build.build_date}} - {% if build.build_duration %}{{build.build_duration / 60}} min{% endif %} + {% if build.build_duration %}{{(build.build_duration / 60) | round(2)}} min{% endif %} {{build.build_runner.runner_name}} {% endfor %} diff --git a/ui/templates/runner.html b/ui/templates/runner.html index 62b6fb9..48899d4 100644 --- a/ui/templates/runner.html +++ b/ui/templates/runner.html @@ -29,7 +29,7 @@ {{build.build_version}} {{build.build_type}} {{build.build_date}} - {% if build.build_duration %}{{build.build_duration / 60}} min{% endif %} + {% if build.build_duration %}{{(build.build_duration / 60) | round(2)}} min{% endif %} {% endfor %} -- 2.20.1