Skip to content

Commit

Permalink
fix for null traffic data
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Apr 8, 2013
1 parent 99fcf7e commit 405cd4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/v-update-web-domains-traff
Expand Up @@ -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

Expand Down

0 comments on commit 405cd4b

Please sign in to comment.