This commit is contained in:
olli 2023-05-17 11:35:29 +02:00
parent bce1a3456c
commit d323c568b5

View File

@ -40,14 +40,14 @@ function analyze {
IFS=$'\n' IFS=$'\n'
local f_strategy local f_strategy
lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l) #lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l)
if [ $lines -lt 40 ] #if [ $lines -lt 40 ]
then #then
g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 40!" # g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 40!"
return 1 # return 1
fi #fi
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,')
do do
IFS="$ORIGIFS" IFS="$ORIGIFS"
current=$(echo $line | cut -d, -f2) current=$(echo $line | cut -d, -f2)