Permalink
Browse files

fix for null traffic data

  • Loading branch information...
serghey-rodin committed Apr 8, 2013
1 parent 99fcf7e commit 405cd4bdb1f8fb31d71770f54250a9b976a6c2c3
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/v-update-web-domains-traff
@@ -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.