mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02:00
tx_pool: fix crash in stats
if tx receive_time == now. supersedes #2322
This commit is contained in:
parent
4466b6d1b0
commit
ea15e72d73
@ -575,7 +575,7 @@ namespace cryptonote
|
|||||||
stats.num_10m++;
|
stats.num_10m++;
|
||||||
if (meta.last_failed_height)
|
if (meta.last_failed_height)
|
||||||
stats.num_failing++;
|
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].txs++;
|
||||||
agebytes[age].bytes += meta.blob_size;
|
agebytes[age].bytes += meta.blob_size;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user