X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7d07126f5470b9f0acc18d67ebbf015b7241d35b..7eb3680b81fdf339e466d9279584805f17a54c0f:/cookbooks/munin/files/default/plugins/replication_delay?ds=sidebyside 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)