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

Commit e1f078a

Browse files
author
Minera
committed
Fix for Z9 mini
1 parent a76d81b commit e1f078a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

application/models/util_model.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function getParsedStats($stats, $network = false)
479479
$devicePoolActives = array_count_values($devicePoolIndex);
480480
}
481481

482-
// Antminer L3+
482+
// New Antminer
483483
if ($antNew && isset($stats->stats[0]->STATS[1]) && isset($stats->summary[0]->SUMMARY[0])) {
484484
$device = $stats->stats[0]->STATS[1];
485485
$summaryAntNew = $stats->summary[0]->SUMMARY[0];
@@ -535,6 +535,12 @@ public function getParsedStats($stats, $network = false)
535535
} else {
536536
$cgbfgminerPoolHashrate = round(($totals->{'Work Utility'}*71582788), 0);
537537
}
538+
539+
if (!$tdhashrate) $return['totals']['hashrate'] = $cgbfgminerPoolHashrate;
540+
541+
if (!$antNew && !isset($stats->devs[0]->DEVS)) {
542+
$return['devices']['Unknown'] = $return['totals'];
543+
}
538544
}
539545
}
540546

@@ -570,6 +576,7 @@ public function getParsedStats($stats, $network = false)
570576
{
571577
$return['pool']['url'] = $pool->url;
572578
$return['pool']['alive'] = $pool->alive;
579+
$devicePoolIndex[] = $poolIndex;
573580
}
574581
$return['pool']['hashrate'] = $cgbfgminerPoolHashrate;
575582

0 commit comments

Comments
 (0)