Ver Fonte

hotfix to avoid octal numbers

Serghey Rodin há 13 anos atrás
pai
commit
b82899e557
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      bin/v-update-web-domains-traff

+ 1 - 0
bin/v-update-web-domains-traff

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