From d0dc71daab5a11433154932114390b208e3b087f Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 7 Jul 2020 02:18:27 +0000 Subject: [PATCH 1/1] fix(bkgpslog):timeNanosec:Make internal variables local --- unitproc/bktemp-timeNanosec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unitproc/bktemp-timeNanosec b/unitproc/bktemp-timeNanosec index 0c38cb9..1fe077f 100644 --- a/unitproc/bktemp-timeNanosec +++ b/unitproc/bktemp-timeNanosec @@ -3,10 +3,11 @@ timeNanosec() { # Desc: Get epoch nanoseconds - # Version 0.1.1 + # Version 0.1.2 # Input: (none) # Output: Nanoseconds since 1970-01-01 # Depends: date 8 + local currentTime epochSeconds fracNanosec epochNanosec currentTime="$(date +%s.%N)"; epochSeconds="$(echo "$currentTime" | cut -d. -f1)"; fracNanosec="$(echo "$currentTime" | cut -d. -f2)"; -- 2.30.2