mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
load pieces hash return total and success
This commit is contained in:
@@ -32,8 +32,8 @@ class TorrentLoadPiecesHash extends Command
|
||||
$id = $this->option('id');
|
||||
$rep = new TorrentRepository();
|
||||
$this->info("id: $id, going to load pieces hash...");
|
||||
$total = $rep->loadPiecesHashCache($id);
|
||||
$this->info(sprintf("%s, total: %s, cost time: %s seconds.", nexus()->getRequestId(), $total, time() - $begin));
|
||||
$result = $rep->loadPiecesHashCache($id);
|
||||
$this->info(sprintf("%s, result: %s, cost time: %s seconds.", nexus()->getRequestId(), json_encode($result), time() - $begin));
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user