diff options
author | David Phillips <david@sighup.nz> | 2017-03-06 22:35:43 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-06 22:35:43 +1300 |
commit | eecbee6d5d7b4213aae6fe62962ef71181717447 (patch) | |
tree | 6e76961228447af7edf15f7f1606c02b646dd360 /local | |
parent | 9c5844734a670a2003216fb96ab5343a10522ebf (diff) | |
download | dotfiles-eecbee6d5d7b4213aae6fe62962ef71181717447.tar.xz |
Change grab-spot from 3 hours to 1 hour
Diffstat (limited to 'local')
-rwxr-xr-x | local/bin/grab-spot | 2 |
1 files changed, 1 insertions, 1 deletions
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" |