mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
fix for null traffic data
This commit is contained in:
parent
99fcf7e1e5
commit
405cd4bdb1
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
|
|||
while read line; do
|
||||
if [[ "$line" =~ ^[0-9]+$ ]]; then
|
||||
line=${line#0}
|
||||
bytes=$(($bytes + $line))
|
||||
if [ ! -z "$line" ]; then
|
||||
bytes=$(($bytes + $line))
|
||||
fi
|
||||
fi
|
||||
done < $log_file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue