mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
difficulty: force int type to ceil() for php 7.x
This commit is contained in:
parent
e829478835
commit
369b6530a1
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ function round_difficulty($diff)
|
|||
{
|
||||
// only keep 8/9 significant numbers
|
||||
$sigdigits = 8;
|
||||
return round($diff, ceil(0 - log10($diff)) + $sigdigits);
|
||||
return round($diff, (int) ceil(0 - log10($diff)) + $sigdigits);
|
||||
}
|
||||
|
||||
function target_to_diff($target)
|
||||
|
|
Loading…
Add table
Reference in a new issue