Permalink
Browse files

fix for 0 bytes bandwidth usage

  • Loading branch information...
serghey-rodin committed Mar 3, 2013
1 parent 66e94a7 commit c843bbafdae6afaab3e94a752da648953178d51b
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/v-update-web-domains-traff
@@ -43,7 +43,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
# Parsing log
while read line; do
if [[ "$1" =~ ^[0-9]+$ ]]; then
if [[ "$line" =~ ^[0-9]+$ ]]; then
bytes=$(($bytes + $line))
fi
done < $log_file

0 comments on commit c843bba

Please sign in to comment.