Merge pull request #2331

ea15e72d tx_pool: fix crash in stats (Howard Chu)
This commit is contained in:
Riccardo Spagni 2017-08-25 00:24:10 +02:00
commit b09e170344
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -575,7 +575,7 @@ namespace cryptonote
stats.num_10m++;
if (meta.last_failed_height)
stats.num_failing++;
uint64_t age = now - meta.receive_time;
uint64_t age = now - meta.receive_time + (now == meta.receive_time);
agebytes[age].txs++;
agebytes[age].bytes += meta.blob_size;
return true;