mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 17:07:58 +08:00
Sleep diff
This commit is contained in:
parent
c5e18b5fd9
commit
752998c315
@ -130,7 +130,7 @@ elapsed=$((($(date +%s%N) - $ts)/1000000))
|
||||
|
||||
if (( delay > elapsed )); then
|
||||
difference=$((delay-elapsed))
|
||||
float=$(echo | awk -v diff=\""${difference}"\" '{print diff * 0.001}')
|
||||
float=$(echo | awk -v diff="${difference}" '{print diff * 0.001}')
|
||||
echo "Elapsed time: $elapsed, sleep: $float"
|
||||
sleep $difference
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user