mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 02:05:22 +08:00
Make math usage in fish-spec backwards compatible
This commit is contained in:
parent
1c14af38b9
commit
85afe3c41d
|
@ -4,7 +4,7 @@ end
|
|||
|
||||
function __fish-spec.all_specs_finished -e all_specs_finished -a spec
|
||||
set -l __fish_spec_end_time (__fish-spec.current_time)
|
||||
set -l diff (math --scale=3 "($__fish_spec_end_time - $__fish_spec_start_time) / 1000")
|
||||
set -l diff (math "($__fish_spec_end_time - $__fish_spec_start_time) * 0.001")
|
||||
|
||||
echo -en '\n\nFinished in '
|
||||
printf '%g' $diff
|
||||
|
|
Loading…
Reference in New Issue
Block a user