BTC fixes
This commit is contained in:
parent
3ec42e950b
commit
42eb493ff9
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ function update_file {
|
|||
#echo WILL_WGET
|
||||
}
|
||||
|
||||
if [ -e $file ]; then
|
||||
if [ -s $file ]; then
|
||||
#update if older than 1h
|
||||
age=`stat -c %Y $file`;
|
||||
now=`date +%s`;
|
||||
|
@ -20,7 +20,7 @@ if [ -e $file ]; then
|
|||
#Fucking ugly, but works
|
||||
content=`cat $file | python -mjson.tool | grep -A3 EUR | tail -n3 | cut -d':' -f2 | cut -d'"' -f2`;
|
||||
|
||||
p24h=`echo "$content" | sed -n 1p`
|
||||
p24h=`echo "$content" | sed -n 1p | cut -d. -f1`
|
||||
p7d=`echo "$content" | sed -n 3p`
|
||||
p30d=`echo "$content" | sed -n 2p`
|
||||
|
||||
|
|
Loading…
Reference in a new issue