forked from len0rd/rockbox
Fixed buggy array slicing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22022 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4fc00222cb
commit
5c79e64c91
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ if (scalar @files < $cores)
|
||||||
|
|
||||||
# fork children
|
# fork children
|
||||||
my @pids;
|
my @pids;
|
||||||
my $slice = int((scalar @files / $cores) + 0.5);
|
my $slice = int((scalar @files + $cores) / $cores);
|
||||||
for my $i (0 .. $cores-1)
|
for my $i (0 .. $cores-1)
|
||||||
{
|
{
|
||||||
my $pid = fork;
|
my $pid = fork;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue