Skip to content

Commit 405cd4b

Browse files
committed
fix for null traffic data
1 parent 99fcf7e commit 405cd4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/v-update-web-domains-traff

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
4545
while read line; do
4646
if [[ "$line" =~ ^[0-9]+$ ]]; then
4747
line=${line#0}
48-
bytes=$(($bytes + $line))
48+
if [ ! -z "$line" ]; then
49+
bytes=$(($bytes + $line))
50+
fi
4951
fi
5052
done < $log_file
5153

0 commit comments

Comments
 (0)