mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
fix for 0 bytes bandwidth usage
This commit is contained in:
parent
66e94a79fe
commit
c843bbafda
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
|
|||
|
||||
# Parsing log
|
||||
while read line; do
|
||||
if [[ "$1" =~ ^[0-9]+$ ]]; then
|
||||
if [[ "$line" =~ ^[0-9]+$ ]]; then
|
||||
bytes=$(($bytes + $line))
|
||||
fi
|
||||
done < $log_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue