From c503eb7ba7d5a806a791da481bdee5dd240e995f Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 7 Jul 2020 10:02:51 +0000 Subject: [PATCH] test(bkgpslog):more pid float testing --- exec/bkgpslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2