small fixes
This commit is contained in:
parent
89f72c7a45
commit
49d724b876
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user