Skip to content
Snippets Groups Projects
Commit 3a2581ea authored by Toke Eskildsen's avatar Toke Eskildsen
Browse files

Bugfix: The substring extraction failed under some versions of bash

parent 4929b34a
No related branches found
No related tags found
No related merge requests found
......@@ -60,9 +60,9 @@ export -f addGetCounter
# Increments the counter with milliseconds from currenttime-starttime
function updateTiming() {
local START=$2
local START=${START:0:-6}
local START=${START:0:${#START}-6}
local END=`date +%s%N`
local END=${END:0:-6}
local END=${END:0:${#END}-6}
addDeltaGetCounter $1 $((END-START))
}
export -f updateTiming
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment