Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
Fix for Z9 mini
Browse files Browse the repository at this point in the history
  • Loading branch information
Minera committed Oct 9, 2018
1 parent a76d81b commit e1f078a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/models/util_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function getParsedStats($stats, $network = false)
$devicePoolActives = array_count_values($devicePoolIndex);
}

// Antminer L3+
// New Antminer
if ($antNew && isset($stats->stats[0]->STATS[1]) && isset($stats->summary[0]->SUMMARY[0])) {
$device = $stats->stats[0]->STATS[1];
$summaryAntNew = $stats->summary[0]->SUMMARY[0];
Expand Down Expand Up @@ -535,6 +535,12 @@ public function getParsedStats($stats, $network = false)
} else {
$cgbfgminerPoolHashrate = round(($totals->{'Work Utility'}*71582788), 0);
}

if (!$tdhashrate) $return['totals']['hashrate'] = $cgbfgminerPoolHashrate;

if (!$antNew && !isset($stats->devs[0]->DEVS)) {
$return['devices']['Unknown'] = $return['totals'];
}
}
}

Expand Down Expand Up @@ -570,6 +576,7 @@ public function getParsedStats($stats, $network = false)
{
$return['pool']['url'] = $pool->url;
$return['pool']['alive'] = $pool->alive;
$devicePoolIndex[] = $poolIndex;
}
$return['pool']['hashrate'] = $cgbfgminerPoolHashrate;

Expand Down

0 comments on commit e1f078a

Please sign in to comment.