mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
daemon: fix min/max tracking using the wrong size
Reported by iDunk
This commit is contained in:
parent
18e406a0e6
commit
eb4ecd442d
1 changed files with 4 additions and 4 deletions
|
@ -859,10 +859,10 @@ bool t_rpc_command_executor::print_transaction_pool_stats() {
|
||||||
for (const auto &tx_info: res.transactions)
|
for (const auto &tx_info: res.transactions)
|
||||||
{
|
{
|
||||||
bytes += tx_info.blob_size;
|
bytes += tx_info.blob_size;
|
||||||
if (min_bytes == 0 || bytes < min_bytes)
|
if (min_bytes == 0 || tx_info.blob_size < min_bytes)
|
||||||
min_bytes = bytes;
|
min_bytes = tx_info.blob_size;
|
||||||
if (bytes > max_bytes)
|
if (tx_info.blob_size > max_bytes)
|
||||||
max_bytes = bytes;
|
max_bytes = tx_info.blob_size;
|
||||||
if (!tx_info.relayed)
|
if (!tx_info.relayed)
|
||||||
n_not_relayed++;
|
n_not_relayed++;
|
||||||
fee += tx_info.fee;
|
fee += tx_info.fee;
|
||||||
|
|
Loading…
Reference in a new issue