hotfix to avoid octal numbers

This commit is contained in:
Serghey Rodin 2013-03-31 18:56:18 +03:00
parent ecf063711c
commit b82899e557

View file

@ -44,6 +44,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
# Parsing log
while read line; do
if [[ "$line" =~ ^[0-9]+$ ]]; then
line=${line#0}
bytes=$(($bytes + $line))
fi
done < $log_file