mirror of
https://github.com/myvesta/vesta
synced 2025-07-12 16:13:34 -07:00
hotfix to avoid octal numbers
This commit is contained in:
parent
ecf063711c
commit
b82899e557
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ for domain in $(search_objects 'web' 'SUSPENDED' "no" 'DOMAIN'); do
|
||||||
# Parsing log
|
# Parsing log
|
||||||
while read line; do
|
while read line; do
|
||||||
if [[ "$line" =~ ^[0-9]+$ ]]; then
|
if [[ "$line" =~ ^[0-9]+$ ]]; then
|
||||||
|
line=${line#0}
|
||||||
bytes=$(($bytes + $line))
|
bytes=$(($bytes + $line))
|
||||||
fi
|
fi
|
||||||
done < $log_file
|
done < $log_file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue