mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
backend bonus log exclude seeding default
This commit is contained in:
@@ -113,6 +113,10 @@ class HitAndRun extends NexusModel
|
||||
do_log(sprintf('[INVALID_CATEGORY], Torrent: %s', $this->torrent_id), 'error');
|
||||
return '---';
|
||||
}
|
||||
if (!$this->snatch) {
|
||||
do_log("hit and run: {$this->id} no snatch", 'warning');
|
||||
return '---';
|
||||
}
|
||||
$seedTimeMinimum = HitAndRun::getConfig('seed_time_minimum', $searchBoxId);
|
||||
$diffInSeconds = 3600 * $seedTimeMinimum - $this->snatch->seedtime;
|
||||
return mkprettytime($diffInSeconds);
|
||||
|
||||
Reference in New Issue
Block a user