more pure bash to speed up things
This commit is contained in:
parent
50d36bf2cf
commit
2bddc69247
@ -50,9 +50,6 @@ function analyze {
|
||||
rm -rf ${g_tmp}/interim-${tmpfile}
|
||||
rm -rf ${g_tmp}/output-${tmpfile}
|
||||
|
||||
#local f_ORIGIFS="$IFS"
|
||||
#IFS=$'\n'
|
||||
|
||||
# Chart Part
|
||||
echo "$(head -n1 ${file}),Market Perrormance,Score,Buy Score,Sell Score,InTrade,Inetrim Result" >analyze-${analyzedate}/chart-${tmpfile}
|
||||
# Chart Part End
|
||||
@ -78,12 +75,12 @@ function analyze {
|
||||
|
||||
local f_time="${f_date%:*}"
|
||||
f_time="${f_time//[^0-9]/}"
|
||||
echo "$f_time
|
||||
"
|
||||
time=$(echo $line | cut -d, -f1 | cut -d: -f1,2)
|
||||
echo "$f_time"
|
||||
|
||||
#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/ *//')
|
||||
time=${time//[^0-9]/}
|
||||
f_market_performance=${f_market_performace_array[${time}]}
|
||||
#time=${time//[^0-9]/}
|
||||
f_market_performance=${f_market_performace_array[${f_time}]}
|
||||
[ -z "${f_market_performance}" ] && f_market_performance=${f_market_performance_before}
|
||||
f_market_performance_before=${f_market_performance}
|
||||
echo "MARKET_PERF=$f_market_performance"
|
||||
|
Loading…
Reference in New Issue
Block a user