From 3c28105f7338bf035f7e506069d12f590bd25396 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 15 Feb 2023 19:10:49 +0100 Subject: [PATCH] revert 514a6c8224f88230702cb6b237ee352711871a51 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit revert „gaboshlib/g_percentage-diff.bashfunc“ ändern --- gaboshlib/g_percentage-diff.bashfunc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gaboshlib/g_percentage-diff.bashfunc b/gaboshlib/g_percentage-diff.bashfunc index ade8476..af75ef5 100644 --- a/gaboshlib/g_percentage-diff.bashfunc +++ b/gaboshlib/g_percentage-diff.bashfunc @@ -3,5 +3,5 @@ function g_percentage-diff { local g_from=$1 local g_to=$2 - echo "scale=2; 100/$g_from*($g_to-$g_from)" | bc | sed 's/^\./0./; s/^-\./-0./' + echo "scale=2; 100/$g_from*($g_to-$g_from)" | bc | sed 's/^\./0./; s/^-\./-0./' | xargs printf "%.2f" }