From 2202f9c5d5b3f0de999b50dc80f85d4ef3f2112f Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Tue, 12 Jul 2016 22:08:27 +0200 Subject: [PATCH] Fix the display of dropped or kept options --- scripts/pocket-devotee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/pocket-devotee b/scripts/pocket-devotee index 88c79e5..64075c7 100755 --- a/scripts/pocket-devotee +++ b/scripts/pocket-devotee @@ -345,7 +345,7 @@ EOM $Drop{$i}++; print {$RESULTS} "Dropping Option ", $order_to_options{$i + 1}{key}, " because of Majority. ($ratio)"; - my $comparison_sign = $order_to_options{$i + 1}{majority} == 1 ? '<' : '<='; + my $comparison_sign = $order_to_options{$i + 1}{majority} == 1 ? '<=' : '<'; printf {$RESULTS} " %6.3f (%d/%d) $comparison_sign %d\n", $ratio, $Beat_Matrix[$i][$max_choices - 1], $Beat_Matrix[$max_choices - 1][$i], @@ -353,7 +353,8 @@ EOM } else { print {$RESULTS} "Option ", $order_to_options{$i + 1}{key}, " passes Majority."; print {$RESULTS} " "; - printf {$RESULTS} " %6.3f (%d/%d) >= %d\n", + my $comparison_sign = $order_to_options{$i + 1}{majority} == 1 ? '>' : '>='; + printf {$RESULTS} " %6.3f (%d/%d) $comparison_sign %d\n", $ratio, $Beat_Matrix[$i][$max_choices - 1], $Beat_Matrix[$max_choices - 1][$i], $order_to_options{$i + 1}{majority}; -- 2.39.2