From: Steven Baltakatei Sandoval Date: Tue, 7 Jul 2020 10:02:51 +0000 (+0000) Subject: test(bkgpslog):more pid float testing X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/c503eb7ba7d5a806a791da481bdee5dd240e995f?ds=inline test(bkgpslog):more pid float testing --- diff --git a/exec/bkgpslog b/exec/bkgpslog index 7a4487f..4678c1e 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -1000,7 +1000,7 @@ magicBufferSleepPID() { fi; ## Calculate nanosecond remainder ### Remove integer - BUFFER_TTL_ADJ_FLOATFRAC="$((BUFFER_TTL_ADJ_NS - (BUFFER_TTL_ADJ_INT*(10**9)) ))"; + BUFFER_TTL_ADJ_FLOATFRAC="$((BUFFER_TTL_ADJ_NS - (BUFFER_TTL_ADJ_INT*(10**9)) ))" && vbm "BUFFER_TTL_ADJ_FLOATFRAC:$BUFFER_TTL_ADJ_FLOATFRAC"; ### Calc absolute value of fraction (by removing '-' if present; see https://stackoverflow.com/a/47240327 BUFFER_TTL_ADJ_FLOATFRAC="${BUFFER_TTL_ADJ_FLOAT_FRAC#-}" && vbm "BUFFER_TTL_ADJ_FLOATFRAC:$BUFFER_TTL_ADJ_FLOATFRAC"; ## Form float BUFFER_TTL_ADJ_FLOAT