This commit is contained in:
olli 2023-11-06 18:02:08 +01:00
parent 0d5c35a779
commit 723c95d8b1

View File

@ -21,7 +21,7 @@ function analyze {
. /etc/bash/gaboshlib.include . /etc/bash/gaboshlib.include
g_tmp=$2 g_tmp="$2"
#for bashfunc in $(find /etc/bash/gaboshlib -type f -name "g_*.bashfunc" -o -name "g_*.sh") #for bashfunc in $(find /etc/bash/gaboshlib -type f -name "g_*.bashfunc" -o -name "g_*.sh")
#do #do
# . "$bashfunc" # . "$bashfunc"
@ -47,7 +47,7 @@ function analyze {
rm -f ${g_tmp}/interim-${tmpfile} rm -f ${g_tmp}/interim-${tmpfile}
rm -f ${g_tmp}/output-${tmpfile} rm -f ${g_tmp}/output-${tmpfile}
ORIGIFS="$IFS" local f_ORIGIFS="$IFS"
IFS=$'\n' IFS=$'\n'
# Chart Part # Chart Part
@ -60,7 +60,7 @@ function analyze {
f_sell_score="" f_sell_score=""
f_buy_score="" f_buy_score=""
# Chart Part End # Chart Part End
IFS="$ORIGIFS" IFS=$f_ORIGIFS
current=$(echo $line | cut -d, -f2) current=$(echo $line | cut -d, -f2)
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/ *//')