]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/replication_delay
Make nftables block various invalid TCP flag combinations
[chef.git] / cookbooks / munin / files / default / plugins / replication_delay
index f6cd317a92faeb00a72e06ab38cce6cac377e740..27dd1080944e7f06103f90c3db770f69b480fa7b 100755 (executable)
@@ -22,8 +22,7 @@ if [ "$1" = "config" ]; then
         exit 0
 fi
 
         exit 0
 fi
 
-latest_changes=$(ls /var/lib/replicate/changes-*.osc.gz | sort --version-sort | tail -1)
-tstamp=$(osmium fileinfo --extended --get=data.timestamp.last ${latest_changes})
+tstamp=$(osmium fileinfo --extended --get=data.timestamp.last /var/lib/replicate/changes-latest.osc.gz)
 tstampsec=$(date --date=${tstamp} +%s)
 nowsec=$(date +%s)
 
 tstampsec=$(date --date=${tstamp} +%s)
 nowsec=$(date +%s)