mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 01:59:25 -05:00
Fix #2164 histogram output
When there are more than 50txs, the timestamp for the last
bin was printed incorrectly. Subtracting "now" was omitted by mistake
in 3fc22e7b78
This commit is contained in:
parent
605ad09a3e
commit
8db68a57f5
@ -966,7 +966,7 @@ bool t_rpc_command_executor::print_transaction_pool_stats() {
|
|||||||
denom = n-1;
|
denom = n-1;
|
||||||
for (i=0; i<denom; i++)
|
for (i=0; i<denom; i++)
|
||||||
times[i] = i * numer / denom;
|
times[i] = i * numer / denom;
|
||||||
times[i] = res.pool_stats.oldest;
|
times[i] = now - res.pool_stats.oldest;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
numer = now - res.pool_stats.oldest;
|
numer = now - res.pool_stats.oldest;
|
||||||
|
Loading…
Reference in New Issue
Block a user