From ed84df970029aea58953aebb41fb60c7f9dfab07 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 23 Feb 2017 14:59:55 +0100 Subject: reproducible Debian: compress output Signed-off-by: Holger Levsen --- bin/reproducible_html_dashboard.sh | 6 +++--- 1 file 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=" (in the last $DAY_DIFFS days)" + DISCLAIMER=" (last $DAY_DIFFS days)" 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 "$MIN minutes, $SEC seconds" + write_page "$MIN min., $SEC sec." 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 "$MIN minutes, $SEC seconds" + write_page "$MIN min., $SEC sec." done write_page "packages tested on $DATE" -- cgit v1.2.3-70-g09d2