Skip to content

Commit c843bba

Browse files
committed
fix for 0 bytes bandwidth usage
1 parent 66e94a7 commit c843bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bin/v-update-web-domains-traff

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
4343

4444
# Parsing log
4545
while read line; do
46-
if [[ "$1" =~ ^[0-9]+$ ]]; then
46+
if [[ "$line" =~ ^[0-9]+$ ]]; then
4747
bytes=$(($bytes + $line))
4848
fi
4949
done < $log_file

0 commit comments

Comments
 (0)