From 1681bd17f64fdc70f04d84088a54bd85cccf33fb Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 10 May 2023 14:58:50 +0200 Subject: [PATCH] small fixes --- dabo/analyze.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 52abd65..319a198 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -15,6 +15,9 @@ function analyze { local file=$1 tmpfile=$(basename "${file}") + # to avoid parallel output + sleep $(shuf -i 1-10 -n1) + . /etc/bash/gaboshlib/g_percentage-diff.bashfunc . dabo/functions/check_buy_conditions.sh . dabo/functions/check_sell_conditions.sh @@ -43,7 +46,7 @@ function analyze { lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l) if [ $lines -lt 50 ] then - g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 25!" + g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 50!" return 1 fi