diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-23 23:18:34 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-23 23:18:34 +0100 |
| commit | eb4ecd442d4aa5d27606554d9484a03a9c6d98fc (patch) | |
| tree | 883549aab632d508e664fd605f98b170c3c30e83 /src/daemon | |
| parent | 18e406a0e6c520d3772461bf271fe96247912986 (diff) | |
| download | monzero-core-eb4ecd442d4aa5d27606554d9484a03a9c6d98fc.tar.gz monzero-core-eb4ecd442d4aa5d27606554d9484a03a9c6d98fc.tar.xz monzero-core-eb4ecd442d4aa5d27606554d9484a03a9c6d98fc.zip | |
daemon: fix min/max tracking using the wrong size
Reported by iDunk
Diffstat (limited to 'src/daemon')
| -rw-r--r-- | src/daemon/rpc_command_executor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index d8d8aac99..7d50ae76b 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -859,10 +859,10 @@ bool t_rpc_command_executor::print_transaction_pool_stats() { for (const auto &tx_info: res.transactions) { bytes += tx_info.blob_size; - if (min_bytes == 0 || bytes < min_bytes) - min_bytes = bytes; - if (bytes > max_bytes) - max_bytes = bytes; + if (min_bytes == 0 || tx_info.blob_size < min_bytes) + min_bytes = tx_info.blob_size; + if (tx_info.blob_size > max_bytes) + max_bytes = tx_info.blob_size; if (!tx_info.relayed) n_not_relayed++; fee += tx_info.fee; |
