mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-22 09:53:40 +08:00
Debug
This commit is contained in:
@@ -61,7 +61,7 @@ function downloadUpdate {
|
||||
fi
|
||||
|
||||
if cmp --silent -- "${TMP}" "${SCRIPT}"; then
|
||||
echo "$HEADER: update file is already equal?" && return
|
||||
echo "$HEADER: update file is already equal? (${local_size} / ${remote_size})" && return
|
||||
fi
|
||||
|
||||
mv -f "${TMP}" "${SCRIPT}"
|
||||
@@ -123,7 +123,8 @@ elapsed=$((($(date +%s%N) - ts)/1000000))
|
||||
|
||||
if (( delay > elapsed )); then
|
||||
difference=$((delay-elapsed))
|
||||
sleep "$(echo | awk -v diff="${difference}" '{print diff * 0.001}')"
|
||||
float=$(echo | awk -v diff="${difference}" '{print diff * 0.001}')
|
||||
sleep "$float"
|
||||
fi
|
||||
|
||||
# Display message in docker log output
|
||||
|
||||
Reference in New Issue
Block a user