This repository was archived by the owner on Nov 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments