Skip to content
Snippets Groups Projects
Commit 53b058b4 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Zobrazime nadpolovicni podporu

parent 38fe92c0
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,10 @@ sub process {
}
}
my $total = ( scalar @ballots );
my $half = $total / 2;
my $total = ( scalar @ballots );
my $half = $total / 2;
my $more_than_half = int($half) + 1;
my @log;
$c->stash->{ballots} = \@ballots;
......@@ -61,7 +63,7 @@ sub process {
}
push @log, {
title => "Počáteční rozdělení ($total listků)",
title => "Počáteční rozdělení ($total listků, nadpoloviční podpora $more_than_half)",
data => Dump $r,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment