From a85a9694f247d8a7c728c520107d1f9cd0b56291 Mon Sep 17 00:00:00 2001 From: Maciej Krok Date: Mon, 26 Dec 2016 22:50:24 +0100 Subject: [PATCH] time fix2 --- scripts/getwx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/getwx.sh b/scripts/getwx.sh index 70c2990..fbcbcd9 100755 --- a/scripts/getwx.sh +++ b/scripts/getwx.sh @@ -9,8 +9,8 @@ WXFILE="/tmp/aprs.wx.xml" TIMECASH=$(( 60 * 10 )) # 5 minut -NOW=$(( $(date -u +%s) - $TIMECASH )) -LASTTIME=$(( $(xmlstarlet sel -t -v "/xml/entries/entry/time" $WXFILE ) + 1 )) +NOW=$(date -u +%s) +LASTTIME=$(( $(xmlstarlet sel -t -v "/xml/entries/entry/time" $WXFILE ) + $TIMECASH )) if (( $NOW > $LASTTIME )) then