Skip to content

Commit

Permalink
tests/env.sh: Fix log timestamps
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Faria <[email protected]>
  • Loading branch information
albertofaria committed Apr 23, 2024
1 parent b349ec0 commit 91ce0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ COMMANDS
# Usage: __elapsed
__elapsed() {
# shellcheck disable=SC2001
sed 's/\(.\{9\}\)$/.\1/' <<< "$(( $( date +%s%N ) - start_time ))"
sed 's/^0*\(..*\)\(.\{9\}\)$/\1.\2/' <<< "000000000$(( $( date +%s%N ) - start_time ))"
}

# Usage: __small_log_without_time <color> <format> <args...>
Expand Down

0 comments on commit 91ce0d6

Please sign in to comment.