Browse Source

php - set shift rewarded format to %.5f

master
kanoi 9 years ago
parent
commit
48eb9a9ee9
  1. 2
      pool/page_shifts.php

2
pool/page_shifts.php

@ -81,7 +81,7 @@ function doshifts($data, $user)
$pg .= '<td class=dr>'.$ans['rewards:'.$i].'</td>'; $pg .= '<td class=dr>'.$ans['rewards:'.$i].'</td>';
$ppsr = (float)$ans['ppsrewarded:'.$i]; $ppsr = (float)$ans['ppsrewarded:'.$i];
if ($ppsr > 0) if ($ppsr > 0)
$ppsd = sprintf('%.3e', $ppsr); $ppsd = sprintf('%.5f', $ppsr);
else else
$ppsd = '0'; $ppsd = '0';
$pg .= "<td class=dr>$ppsd</td>"; $pg .= "<td class=dr>$ppsd</td>";

Loading…
Cancel
Save