mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
improved bytes validation
This commit is contained in:
parent
5a73b73b3b
commit
14be9aa777
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
|
|||
|
||||
# Parsing log
|
||||
while read line; do
|
||||
if [[ '-' != "$line" ]] && [[ 0 -lt "$line" ]]; then
|
||||
if [[ "$1" =~ ^[0-9]+$ ]]; then
|
||||
bytes=$(($bytes + $line))
|
||||
fi
|
||||
done < $log_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue