summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/multigcc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/multigcc.pl b/tools/multigcc.pl
index db544355ca..9a43bdb31f 100755
--- a/tools/multigcc.pl
+++ b/tools/multigcc.pl
@@ -36,7 +36,7 @@ if (scalar @files < $cores)
# fork children
my @pids;
-my $slice = int((scalar @files / $cores) + 0.5);
+my $slice = int((scalar @files + $cores) / $cores);
for my $i (0 .. $cores-1)
{
my $pid = fork;