Эх сурвалжийг харах

fix for 0 bytes bandwidth usage

Serghey Rodin 13 жил өмнө
parent
commit
c843bbafda

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

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