mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #4779
233f00c6
cryptonote_core: fix build error gcc 5.4.0 'sign-compare' (xiphon)
This commit is contained in:
commit
dc7de3312f
1 changed files with 1 additions and 1 deletions
|
@ -1716,7 +1716,7 @@ namespace cryptonote
|
||||||
for (size_t n = 0; n < sizeof(seconds)/sizeof(seconds[0]); ++n)
|
for (size_t n = 0; n < sizeof(seconds)/sizeof(seconds[0]); ++n)
|
||||||
{
|
{
|
||||||
unsigned int b = 0;
|
unsigned int b = 0;
|
||||||
for (time_t ts: timestamps) b += ts >= now - seconds[n];
|
for (time_t ts: timestamps) b += ts >= now - static_cast<time_t>(seconds[n]);
|
||||||
const double p = probability(b, seconds[n] / DIFFICULTY_TARGET_V2);
|
const double p = probability(b, seconds[n] / DIFFICULTY_TARGET_V2);
|
||||||
MDEBUG("blocks in the last " << seconds[n] / 60 << " minutes: " << b << " (probability " << p << ")");
|
MDEBUG("blocks in the last " << seconds[n] / 60 << " minutes: " << b << " (probability " << p << ")");
|
||||||
if (p < threshold)
|
if (p < threshold)
|
||||||
|
|
Loading…
Reference in a new issue