mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-22 09:53:40 +08:00
Sleep diff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user