Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/inc/apiv2/model/TaskWrapperDisplayAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ protected function getAggregateSearched(object $object): ?string {

protected function getAggregateStatus(object $object): int {
// TODO: this could be optimized by only requesting taskId, keyspace and keyspaceProgress of all tasks of that wrapper (columnFilter)
$hashlist = Factory::getHashlistFactory()->get($object->getHashlistId());
if ($hashlist->getCracked() === $hashlist->getHashCount()) {
return 3;
}
$tasks = TaskUtils::getTasksOfWrapper($object->getId());
$completed = 0;
$total = 0;
Expand Down
Loading