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