mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
fix for null values
This commit is contained in:
parent
2cdeb72867
commit
23bed9ed19
1 changed files with 3 additions and 3 deletions
|
@ -45,12 +45,12 @@ bytes=0
|
|||
|
||||
# Parsing log
|
||||
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
|
||||
|
||||
# Converting to Mb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue