diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-25 16:56:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-25 16:56:55 +0000 |
commit | 174a6ac9c581a8ec73f57170650cd0becf400ef7 (patch) | |
tree | 33fcb495d546aede0188e4aa6fbd423346085735 | |
parent | Merge pull request #6002 (diff) | |
download | monero-174a6ac9c581a8ec73f57170650cd0becf400ef7.tar.xz |
tx_pool: fix divide by 0 in log
Coverity 205394
-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 0d70f2992..392e611e9 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -324,7 +324,7 @@ namespace cryptonote ++m_cookie; - MINFO("Transaction added to pool: txid " << id << " weight: " << tx_weight << " fee/byte: " << (fee / (double)tx_weight)); + MINFO("Transaction added to pool: txid " << id << " weight: " << tx_weight << " fee/byte: " << (fee / (double)(tx_weight ? tx_weight : 1))); prune(m_txpool_max_weight); |