From eecbee6d5d7b4213aae6fe62962ef71181717447 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 6 Mar 2017 22:35:43 +1300 Subject: Change grab-spot from 3 hours to 1 hour --- local/bin/grab-spot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/bin/grab-spot b/local/bin/grab-spot index b55b461..de49f12 100755 --- a/local/bin/grab-spot +++ b/local/bin/grab-spot @@ -9,7 +9,7 @@ if [ -z $2 ]; then fi # Only bother downloading if it's more than 3 hours old -if [ $(find ~/.cache/"$1$2" -mmin +180) ] ; then +if [ $(find ~/.cache/"$1$2" -mmin +60) ] ; then rate=$(curl "http://rate-exchange-1.appspot.com/currency?from=$1&to=$2" | jshon -e rate) if [ $? -ne 0 ] ; then logger "$0: curl error" -- cgit v1.1