From 85afe3c41d3c81df440599f41c8cade25b27ae38 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Sat, 12 Dec 2020 18:07:35 +0100 Subject: [PATCH] Make math usage in fish-spec backwards compatible --- pkg/fish-spec/basic_formatter.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fish-spec/basic_formatter.fish b/pkg/fish-spec/basic_formatter.fish index e4ddde6..60d9209 100644 --- a/pkg/fish-spec/basic_formatter.fish +++ b/pkg/fish-spec/basic_formatter.fish @@ -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