From: Steven Baltakatei Sandoval Date: Tue, 7 Jul 2020 02:18:27 +0000 (+0000) Subject: fix(bkgpslog):timeNanosec:Make internal variables local X-Git-Tag: 0.3.0~52 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/d0dc71daab5a11433154932114390b208e3b087f?hp=-c fix(bkgpslog):timeNanosec:Make internal variables local --- d0dc71daab5a11433154932114390b208e3b087f 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)";