summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-12-24 14:09:39 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-24 14:09:39 +0100
commitd2ad346cbcac2330febfee7b96e6b64abdc719df (patch)
tree4d7cc130cd5536ac6e17d58d61eb80ee4a8e0580
parent180d47b5b04e51ac49f48fa42056080b008e5a78 (diff)
downloadjenkins.debian.net-d2ad346cbcac2330febfee7b96e6b64abdc719df.tar.xz
reproducible Debian: display weekly average for arm64 for now
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_html_dashboard.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index 3a81a776..fe1a7e37 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -314,6 +314,7 @@ write_build_performance_stats() {
SEC=$(echo "$RESULT-($MIN*60)"|bc)
write_page "<td>$MIN minutes, $SEC seconds</td>"
done
+
local TIMESPAN_VERBOSE="4 weeks"
local TIMESPAN_RAW="28"
# Find stats for 28 days since yesterday, no stats exist for today
@@ -341,9 +342,19 @@ write_build_performance_stats() {
done
write_page "</tr><tr><td class=\"left\">packages tested on average per day in the last $TIMESPAN_VERBOSE</td>"
for ARCH in ${ARCHS} ; do
+ if [ "$ARCH" = "arm64" ] ; then
+ TIMESPAN_RAW="7"
+ local ARM64_DISCLAIMER=" <span style=\"font-size:0.8em;\">(daily average in the last week)</span>"
+ else
+ TIMESPAN_RAW="28"
+ local ARM64_DISCLAIMER=""
+ fi
+ local TIMESPAN="$(echo $TIMESPAN_RAW-1|bc)"
+ local TIMESPAN_DATE=$(date '+%Y-%m-%d %H:%M' -d "- $TIMESPAN days")
+
RESULT=$(query_db "SELECT COUNT(r.build_date) FROM stats_build AS r WHERE r.build_date > '$TIMESPAN_DATE' AND r.architecture='$ARCH'")
RESULT="$(echo $RESULT/$TIMESPAN_RAW|bc)"
- write_page "<td>$RESULT</td>"
+ write_page "<td>$RESULT$ARM64_DISCLAIMER</td>"
done
local TIMESPAN_VERBOSE="3 months"
local TIMESPAN_RAW="91"
@@ -354,6 +365,9 @@ write_build_performance_stats() {
for ARCH in ${ARCHS} ; do
RESULT=$(query_db "SELECT COUNT(r.build_date) FROM stats_build AS r WHERE r.build_date > '$TIMESPAN_DATE' AND r.architecture='$ARCH'")
RESULT="$(echo $RESULT/$TIMESPAN_RAW|bc)"
+ if [ "$ARCH" = "arm64" ] ; then
+ RESULT="&nbsp;"
+ fi
write_page "<td>$RESULT</td>"
done
write_page "</tr></table>"