fix for 0 bytes bandwidth usage

This commit is contained in:
Serghey Rodin 2013-03-03 14:12:28 +02:00
commit c843bbafda

View file

@ -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