more pure bash to speed up things
This commit is contained in:
parent
b7cb6a0bf7
commit
50d36bf2cf
@ -76,7 +76,10 @@ function analyze {
|
|||||||
echo "$line" >>${g_tmp}/${tmpfile}
|
echo "$line" >>${g_tmp}/${tmpfile}
|
||||||
get_vars_from_csv ${g_tmp}/${tmpfile}
|
get_vars_from_csv ${g_tmp}/${tmpfile}
|
||||||
|
|
||||||
echo "$f_date"
|
local f_time="${f_date%:*}"
|
||||||
|
f_time="${f_time//[^0-9]/}"
|
||||||
|
echo "$f_time
|
||||||
|
"
|
||||||
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
||||||
#f_market_performance=$(grep "^$time" data/botdata/MARKET_PERFORMANCE | tail -n1 | cut -d: -f4 | cut -d"%" -f1 | sed 's/ *//')
|
#f_market_performance=$(grep "^$time" data/botdata/MARKET_PERFORMANCE | tail -n1 | cut -d: -f4 | cut -d"%" -f1 | sed 's/ *//')
|
||||||
time=${time//[^0-9]/}
|
time=${time//[^0-9]/}
|
||||||
|
Loading…
Reference in New Issue
Block a user