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'
local f_strategy
lines=$(egrep "^${ANALYZE_TIME}" "$file" | wc -l)
if [ $lines -lt 25 ]
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!"
return 1
fi
for line in $(egrep "^${ANALYZE_TIME}" "$file")
for line in $(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,')
do
IFS="$ORIGIFS"
current=$(echo $line | cut -d, -f2)