X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/7d07126f5470b9f0acc18d67ebbf015b7241d35b..35171e1e6bceb46b7d575de5dda768eb97f4bd49:/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)