Browse Source

fix for 0 bytes bandwidth usage

Serghey Rodin 13 years ago
parent
commit
c843bbafda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-update-web-domains-traff

+ 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