Update getcronjobstatus.inc.php

This commit is contained in:
ahmedbodi 2014-01-23 20:23:41 +00:00
parent ece8b3adf6
commit 6d7d3f2026

View File

@ -41,14 +41,7 @@ foreach ($aCrons as $strCron) {
'message' => $monitoring->getStatus($strCron . '_message'),
);
}
// Output JSON format
$data = array(
'raw' => array( 'personal' => array( 'hashrate' => $dPersonalHashrate ), 'pool' => array( 'hashrate' => $dPoolHashrate ), 'network' => array( 'hashrate' => $dNetworkHashrate / 1000 ) ),
'personal' => array ( 'hashrate' => $dPersonalHashrateAdjusted, 'sharerate' => $dPersonalSharerate, 'shares' => $aUserRoundShares),
'pool' => array( 'hashrate' => $dPoolHashrateAdjusted, 'shares' => $aRoundShares ),
'network' => array( 'hashrate' => $dNetworkHashrateAdjusted, 'difficulty' => $dDifficulty, 'block' => $iBlock ),
);
echo $api->get_json($data);
echo $api->get_json($aCronStatus);
// Supress master template
$supress_master = 1;