aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-29 11:23:08 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-29 11:23:08 +0200
commit6a303b9a3ade17dca98caf6a7e33b251959ccdd2 (patch)
tree8e56d1a8711c46880a96837b79f196dc1edf51ce
parentMerge pull request #1251 (diff)
parentdaemon: fix min/max tracking using the wrong size (diff)
downloadmonero-6a303b9a3ade17dca98caf6a7e33b251959ccdd2.tar.xz
Merge pull request #1254
eb4ecd4 daemon: fix min/max tracking using the wrong size (moneromooo-monero)
-rw-r--r--src/daemon/rpc_command_executor.cpp8
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;