Skip to content
Permalink
Browse files
fix for null traffic data
  • Loading branch information
serghey-rodin committed Apr 8, 2013
1 parent 99fcf7e commit 405cd4bdb1f8fb31d71770f54250a9b976a6c2c3
Showing 1 changed file with 3 additions and 1 deletion.
@@ -45,7 +45,9 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
while read line; do
if [[ "$line" =~ ^[0-9]+$ ]]; then
line=${line#0}
bytes=$(($bytes + $line))
if [ ! -z "$line" ]; then
bytes=$(($bytes + $line))
fi
fi
done < $log_file

0 comments on commit 405cd4b

Please sign in to comment.