mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
fix: display correct time on Linux; close #463
This commit is contained in:
parent
28aaa277e0
commit
55b543eb13
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ switch (command uname)
|
|||
end
|
||||
case \*
|
||||
function _fisher_now -a elapsed
|
||||
command date "+%s%3N" | command awk "{ sub(/3N\$/,\"000\"); print \$0 - 0$elapsed }"
|
||||
command date "+%s%3N" | command awk -v ELAPSED="$elapsed" '{ sub(/%?3N$/, "000") } $0 -= ELAPSED'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue