small fixes

This commit is contained in:
olli 2023-05-10 14:48:28 +02:00
parent 89f72c7a45
commit 49d724b876

View File

@ -40,14 +40,14 @@ function analyze {
IFS=$'\n' IFS=$'\n'
local f_strategy local f_strategy
lines=$(egrep "^${ANALYZE_TIME}" "$file" | wc -l) lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l)
if [ $lines -lt 25 ] if [ $lines -lt 50 ]
then 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 25!"
return 1 return 1
fi fi
for line in $(egrep "^${ANALYZE_TIME}" "$file") 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)