diff --git a/index b/index index eefc4cb..226d0db 100755 --- a/index +++ b/index @@ -60,8 +60,7 @@ then -d @$(rrdtool last ingress.rrd) ) Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '1 hour') - Cache-Control: max-age=0, must-revalidate - refresh: 600 + refresh: 300 +
+ EOHTML + times + date '+%Y-%m-%d %H:%M:%S' + cat <<-EOHTML +
EOHTML @@ -137,6 +142,7 @@ then for level in {1..16} do + prevtimestamp=$maxtimestamp never=0 maxtimestamp=0 tableline=() @@ -297,11 +303,14 @@ then echo "${tableline[@]}" if (( level > curlevel )) then + (( maxtimestamp < prevtimestamp )) \ + && maxtimestamp=$prevtimestamp cat <<-EOHTML $(date +%Y-%m-%d -d @$maxtimestamp) EOHTML fi echo '' + prevtimestamp=$maxtimestamp done cat <<-EOHTML @@ -461,6 +470,12 @@ then
+
+ EOHTML + times + date '+%Y-%m-%d %H:%M:%S' + cat <<-EOHTML +
EOHTML else @@ -472,7 +487,6 @@ else -d @$(rrdtool last ingress.rrd) ) Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z' -d '1 hour') - Cache-Control: max-age=0, must-revalidate EOHEAD diff --git a/lib/medals b/lib/medals index 1c89fc9..469035e 100644 --- a/lib/medals +++ b/lib/medals @@ -1,4 +1,4 @@ -/bin/bash: :n: command not found +#!/bin/bash medals() { local \