From: Ian Jackson Date: Sun, 2 Feb 2014 22:25:53 +0000 (+0000) Subject: better msgs X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=appendix-a6.git;a=commitdiff_plain;h=31ff27e2177fc9e7cc5fbca3a63f844febb19a18 better msgs --- diff --git a/compute b/compute index 45076cd..61c0350 100755 --- a/compute +++ b/compute @@ -66,7 +66,8 @@ our @vab; # Go through the voters and construct V(A,B) -print "\nParsing \`simple' style ballots\n"; +print "\nParsing \`simple' style ballots\n" + if @invotes_cc; # actually, we pre-parse them into @invotes_v # since we want to show them as a tally sheet anyway @@ -132,7 +133,8 @@ if ($defcho && $defcho->{Index} > -1) { my $defi = $defcho->{Index}; die "FD has smaj?!" if $defcho->{Smaj}; -print "\nParsing devotee tally sheet ballots\n"; +print "\nParsing devotee tally sheet ballots\n" + if @invotes_v > @invotes_cc; foreach my $iv (@invotes_v) { my ($votestr,$voter) = @$iv; @@ -222,7 +224,7 @@ if (defined $defi) { my $vad = scalar @{ $vab[$i][$defi] }; my $vda = scalar @{ $vab[$defi][$i] }; next if $vad * $majr->[1] > $vda * $majr->[0]; - drop $i, "majority ratio ($vad * $majr->[1] <= $vda * $majr->[0])"; + drop $i, "majority ratio ($vad:$vda <= $majr->[1]:$majr->[0])"; } }