Allow string interpol in collect sleep calc so --sleep-collect works.

This commit is contained in:
Daniel Nichter
2013-07-24 12:08:01 -07:00
parent 167f663bf5
commit 86a949253d
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ collect() {
|| break
# Synchronize ourselves onto the clock tick, so the sleeps are 1-second
sleep $(date +%s.%N | awk '{print $OPT_SLEEP_COLLECT - ($1 % $OPT_SLEEP_COLLECT)}')
sleep $(date +'%s.%N' | awk "{print $OPT_SLEEP_COLLECT - (\$1 % $OPT_SLEEP_COLLECT)}")
local ts="$(date +"TS %s.%N %F %T")"
# #####################################################################