Build fixes for some platforms

This commit is contained in:
moneromooo-monero
2019-02-14 15:36:13 +00:00
parent 3ac3366a6e
commit 0b0fb709c3
5 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -1760,7 +1760,7 @@ namespace cryptonote
for (size_t n = 0; n < sizeof(seconds)/sizeof(seconds[0]); ++n)
{
unsigned int b = 0;
for (time_t ts: timestamps) b += ts >= now - seconds[n];
for (time_t ts: timestamps) b += ts >= (time_t)(now - seconds[n]);
const double p = probability(b, seconds[n] / DIFFICULTY_TARGET_V2);
MDEBUG("blocks in the last " << seconds[n] / 60 << " minutes: " << b << " (probability " << p << ")");
if (p < threshold)