diff --git a/compare.jq b/compare.jq index f663eb6..326b4de 100644 --- a/compare.jq +++ b/compare.jq @@ -1,8 +1,8 @@ -# Calculate the change in percentage of a nummeric key +# Calculate the change in percentage of a numeric key # # Where .[0] is the new value, and .[1] is the old value def calc_change($key): - . as $input | $input[1][$key] - $input[0][$key]; + . as $input | $input[0][$key] - $input[1][$key]; # Calculate the change in percentage for multiple keys #