Make math usage in fish-spec backwards compatible

This commit is contained in:
Pablo Santiago Blum de Aguiar 2020-12-12 18:07:35 +01:00
parent 1c14af38b9
commit 85afe3c41d

View File

@ -4,7 +4,7 @@ end
function __fish-spec.all_specs_finished -e all_specs_finished -a spec function __fish-spec.all_specs_finished -e all_specs_finished -a spec
set -l __fish_spec_end_time (__fish-spec.current_time) 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 ' echo -en '\n\nFinished in '
printf '%g' $diff printf '%g' $diff