mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-02-21 10:27:22 +08:00
Update progress.sh
This commit is contained in:
parent
c3a427a975
commit
9122fec688
@ -21,7 +21,7 @@ if [[ "$body" == *"..." ]]; then
|
||||
body="<p class=\"loading\">${body::-3}</p>"
|
||||
fi
|
||||
|
||||
cluster=$(stat -f "$path" | grep -m 1 "^Block size:" | cut -d':' -f2 | tail -c+2 | awk {'print $1'})
|
||||
cluster=$(stat -f "$path" | grep -m 1 "^Block size:" | cut -d':' -f2 | tail -c+2 | cut -d' ' -f1)
|
||||
total=$(( ( ( total + cluster / 2 ) / cluster ) * cluster ))
|
||||
|
||||
while true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user