properly format pps value to 12 digits
This commit is contained in:
parent
3f8a1ea0f7
commit
cb3e02e896
@ -31,7 +31,7 @@ if ( $bitcoin->can_connect() === true ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Value per share calculation
|
// Value per share calculation
|
||||||
$pps_value = 50 / (pow(2,32) * $dDifficulty) * pow(2, $config['difficulty']);
|
$pps_value = number_format(round(50 / (pow(2,32) * $dDifficulty) * pow(2, $config['difficulty']), 12) ,12);
|
||||||
|
|
||||||
// Find our last share accounted and last inserted share for PPS calculations
|
// Find our last share accounted and last inserted share for PPS calculations
|
||||||
$iPreviousShareId = $setting->getValue('pps_last_share_id');
|
$iPreviousShareId = $setting->getValue('pps_last_share_id');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user