summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_dashboard.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-02-23 14:59:55 +0100
committerHolger Levsen <holger@layer-acht.org>2017-02-23 14:59:55 +0100
commited84df970029aea58953aebb41fb60c7f9dfab07 (patch)
tree30b0ca9178da56a664939d34d81a149342dcbae2 /bin/reproducible_html_dashboard.sh
parent0b8d35160cbfcffec9036fa3f46d17405d894f75 (diff)
downloadjenkins.debian.net-ed84df970029aea58953aebb41fb60c7f9dfab07.tar.xz
reproducible Debian: compress output
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_dashboard.sh')
-rwxr-xr-xbin/reproducible_html_dashboard.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index c4f8d360..aac0c81a 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -305,7 +305,7 @@ _average_builds_per_day() {
if [ $DAY_DIFFS -ge $MIN_DAYS ]; then
if [ $DAY_DIFFS -lt $TIMESPAN ]; then
# this is a new architecture, there are fewer days to compare to.
- DISCLAIMER=" <span style=\"font-size: 0.8em;\">(in the last $DAY_DIFFS days)</span>"
+ DISCLAIMER=" <span style=\"font-size: 0.8em;\">(last $DAY_DIFFS days)</span>"
TIMESPAN=$DAY_DIFFS
fi
# find stats for since the day before $TIMESPAN_RAW days ago,
@@ -349,7 +349,7 @@ write_build_performance_stats() {
RESULT=$(query_db "SELECT COALESCE(CAST(AVG(r.build_duration) AS INTEGER), 0) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_duration!='0' AND r.build_date LIKE '%$DATE%' AND s.architecture='$ARCH'")
MIN=$(echo $RESULT/60|bc)
SEC=$(echo "$RESULT-($MIN*60)"|bc)
- write_page "<td>$MIN minutes, $SEC seconds</td>"
+ write_page "<td>$MIN min., $SEC sec.</td>"
done
local TIMESPAN_VERBOSE="4 weeks"
@@ -364,7 +364,7 @@ write_build_performance_stats() {
RESULT=$(query_db "SELECT COALESCE(CAST(AVG(r.build_duration) AS INTEGER), 0) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_duration!='0' AND r.build_date > '$TIMESPAN_DATE' AND s.architecture='$ARCH'")
MIN=$(echo $RESULT/60|bc)
SEC=$(echo "$RESULT-($MIN*60)"|bc)
- write_page "<td>$MIN minutes, $SEC seconds</td>"
+ write_page "<td>$MIN min., $SEC sec.</td>"
done
write_page "</tr><tr><td class=\"left\">packages tested on $DATE</td>"