X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7d07126f5470b9f0acc18d67ebbf015b7241d35b..3720032b9487e8cdd89eed9461ddeeac2c3cd764:/cookbooks/munin/files/default/plugins/replication_delay diff --git a/cookbooks/munin/files/default/plugins/replication_delay b/cookbooks/munin/files/default/plugins/replication_delay index f6cd317a9..27dd10809 100755 --- a/cookbooks/munin/files/default/plugins/replication_delay +++ b/cookbooks/munin/files/default/plugins/replication_delay @@ -22,8 +22,7 @@ if [ "$1" = "config" ]; then 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)