diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-25 00:24:10 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-25 00:24:10 +0200 |
commit | b09e170344258db9ee868781755f3a64a4663102 (patch) | |
tree | 2578010e6a76c01396876a7bdcec9e872002be3a /src | |
parent | Merge pull request #2335 (diff) | |
parent | tx_pool: fix crash in stats (diff) | |
download | monero-b09e170344258db9ee868781755f3a64a4663102.tar.xz |
Merge pull request #2331
ea15e72d tx_pool: fix crash in stats (Howard Chu)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 33b1d4101..73f519079 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -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; |