Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-master-status9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 4ff3ed3..6601260 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -158,6 +158,7 @@ fi
if ${web}; then
sed -i 's|$|<br>|' "${tmp_dir}/build-master-status.html"
+ end=$(($(date +%s)-7*24*60*60))
(
[ -f "${webserver_directory}/statistics" ] && \
cat "${webserver_directory}/statistics"
@@ -174,8 +175,14 @@ if ${web}; then
"${locked}" \
"${blocked}" | \
sed 's| $|\n|'
+ echo "${end}"
) | \
- tail -n 10080 > \
+ sort -k1nr,1 | \
+ sed -n "
+ /^${end}\$/q
+ p
+ " | \
+ tac > \
"${tmp_dir}/statistics"
printf '<html>\n<body>\n<a href="build-logs/">build logs</a><br>\n<table>\n<tr>' >> \