diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2009-07-24 22:50:16 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2009-07-24 22:50:16 +0000 |
| commit | 5c79e64c91c77cce72c1df6a3bb4810991276cfe (patch) | |
| tree | 4b051ab3cf69cf7166ae71cc20a12b7659bd7972 /tools | |
| parent | 4fc00222cb5851e28e83d367f173038c7d026b03 (diff) | |
| download | rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.zip rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.tar.gz rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.tar.bz2 rockbox-5c79e64c91c77cce72c1df6a3bb4810991276cfe.tar.xz | |
Fixed buggy array slicing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22022 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/multigcc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/multigcc.pl b/tools/multigcc.pl index db54435..9a43bdb 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; |