summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2009-07-24 22:50:16 +0000
committerBjörn Stenberg <bjorn@haxx.se>2009-07-24 22:50:16 +0000
commit5c79e64c91c77cce72c1df6a3bb4810991276cfe (patch)
tree4b051ab3cf69cf7166ae71cc20a12b7659bd7972
parent4fc00222cb5851e28e83d367f173038c7d026b03 (diff)
downloadrockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.tar.gz
rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.tar.bz2
rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.zip
Fixed buggy array slicing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22022 a1c6a512-1295-4272-9138-f99709370657
-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;