Files
newznab-tmux/misc/update/nix/multiprocessing/backfill.php
T
DariusIII c7da907542 Fix path
2017-04-04 15:09:34 +02:00

9 lines
330 B
PHP

<?php
declare(ticks=1);
require __DIR__ . DIRECTORY_SEPARATOR . '.do_not_run/require.php';
use nntmux\libraries\Forking;
// Check if argument 1 is numeric, which is to limit article count.
(new Forking())->processWorkType(
'backfill', (isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? [0 => $argv[1]] : [0 => false])
);