mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Update Forking class
This commit is contained in:
@@ -851,8 +851,7 @@ class Forking extends \fork_daemon
|
||||
$this->register_child_run([0 => $this, 1 => 'postProcessChildWorker']);
|
||||
$qry = Release::query()
|
||||
->where('nzbstatus', '=', NZB::NZB_ADDED)
|
||||
->whereBetween('nfostatus', [$this->maxRetries, Nfo::NFO_UNPROC])
|
||||
->select(['leftguid as id']);
|
||||
->whereBetween('nfostatus', [$this->maxRetries, Nfo::NFO_UNPROC]);
|
||||
|
||||
if ($this->maxSize > 0) {
|
||||
$qry->where('size', '<', $this->maxSize * 1073741824);
|
||||
@@ -862,7 +861,7 @@ class Forking extends \fork_daemon
|
||||
$qry->where('size', '>', $this->minSize * 1048576);
|
||||
}
|
||||
|
||||
$this->work = $qry->groupBy('leftguid')->limit(16)->get()->toArray();
|
||||
$this->work = $qry->select(['leftguid as id'])->groupBy('leftguid')->limit(16)->get()->toArray();
|
||||
|
||||
$maxProcesses = (int) Settings::settingValue('..nfothreads');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user