Workers'; $rep = getWorkers($user); $ans = repDecode($rep); $pg .= "
Worker Name | "; $pg .= "Difficulty | "; $pg .= "Idle Notifications | "; $pg .= "Idle Notification Time | "; $pg .= "Last Share | "; $pg .= "Hash Rate | "; $pg .= "
'.$ans['workername'.$i].' | '; $pg .= ''.$ans['difficultydefault'.$i].' | '; $nots = $ans['idlenotificationenabled'.$i]; switch ($nots) { case 'Y': case 'y': $nots = 'Y'; break; default: $nots = 'N'; } $pg .= ''.$nots.' | '; $pg .= ''.$ans['idlenotificationtime'.$i].' | '; $lst = $ans['STAMP'] - $ans['w_lastshare'.$i]; if ($lst < 60) $lstdes = $lst.'s'; else { $lst = round($lst/60); if ($lst < 60) $lstdes = $lst.'m'; else { $lst = round($lst/60); if ($lst < 24) $lstdes = $lst.'hr'; else { $lst = round($lst/24); if ($lst < 9999) $lstdes = $lst.'days'; else $lstdes = 'never'; } } } $pg .= "$lstdes | "; if ($ans['w_elapsed'.$i] > 3600) $uhr = $ans['w_hashrate1hr'.$i]; else $uhr = $ans['w_hashrate5m'.$i]; if ($uhr == '?') $uhr = '?GHs'; else { $uhr /= 10000000; if ($uhr < 100000) $uhr = (round($uhr)/100).'GHs'; else $uhr = (round($uhr/1000)/100).'THs'; } $pg .= "$uhr | "; $pg .= "