diff --git a/pool/base.php b/pool/base.php index c00c06fd..820dd68a 100644 --- a/pool/base.php +++ b/pool/base.php @@ -30,6 +30,7 @@ function siprefmt($amt) { global $sipre; + $dot = 2; $pref = floor(log10($amt)/3); if ($pref < 0) $pref = 0; @@ -43,7 +44,9 @@ function siprefmt($amt) $pref++; } - return number_format($amt, 2).$sipre[$pref]; + if ($pref == 0) + $dot = 0; + return number_format($amt, $dot).$sipre[$pref]; } # function difffmt($amt) diff --git a/pool/page.php b/pool/page.php index 66772e24..dae31d25 100644 --- a/pool/page.php +++ b/pool/page.php @@ -196,10 +196,10 @@ function pgtop($dotop, $user, $douser) } if (isset($info['blockacc'])) - $pac = $info['blockacc']; + $pac = number_format($info['blockacc'], 0); if (isset($info['blockerr'])) - $per = $info['blockerr']; + $per = number_format($info['blockerr'], 0); if (isset($info['u_hashrate5m'])) {