Fixing notification reset for active workers

Fixes #600
This commit is contained in:
Sebastian Grewe 2013-08-14 11:48:41 +02:00
parent ad6ceed77e
commit 020d1ef01b

View File

@ -58,7 +58,7 @@ if (!empty($aNotifications)) {
$aData = json_decode($aNotification['data'], true);
$aWorker = $worker->getWorker($aData['id']);
$log->logInfo(" " . $aWorker['username'] . " ...");
if ($aWorker['active'] == 1) {
if ($aWorker['hashrate'] > 0) {
if ($notification->setInactive($aNotification['id'])) {
$log->logInfo(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n");
} else {