no longer number the timestamps
Signed-off-by: Joerg Jaspert <joerg@debian.org>
# Timestamp. Used for dinstall stat graphs
function ts() {
- TS=$(($TS+1));
- echo "Archive maintenance timestamp $TS ($1): $(date +%H:%M:%S)"
+ echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
}
# Cleanup actions
# Marker for dinstall end
DINSTALLEND="${lockdir}/dinstallend"
-# Timestamps start at -1. so first gets 0
-TS=-1
touch "${DINSTALLSTART}"
ts "startup"
GRAPH_DIR = '/srv/ftp.debian.org/web/stat'
LINE = re.compile(r'(?:|.*/)dinstall_(\d{4})\.(\d{2})\.(\d{2})-(\d{2}):(\d{2}):(\d{2})\.log(?:\.bz2)?:'+
- r'Archive maintenance timestamp \d+ \(([^\)]*)\): (\d{2}):(\d{2}):(\d{2})$')
+ r'Archive maintenance timestamp \(([^\)]*)\): (\d{2}):(\d{2}):(\d{2})$')
UNSAFE = re.compile(r'[^a-zA-Z/\._:0-9\- ]')
graphs = {"dinstall1": {"keystolist":["pg_dump1", "i18n 1", "accepted", "make-suite-file-list", "apt-ftparchive",