aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-07-10 15:47:10 +0100
committerHoward Chu <hyc@symas.com>2017-07-10 15:51:03 +0100
commit8db68a57f522c6aa76e74d7a94147b5f1eb3deb6 (patch)
treefc70adce4d1e6cde8ae523c4f775103cd6f0ce98 /src
parentMerge pull request #2130 (diff)
downloadmonero-8db68a57f522c6aa76e74d7a94147b5f1eb3deb6.tar.xz
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 3fc22e7b78ab1dd409de4f3e8f5bff27be19735b
Diffstat (limited to 'src')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 1c9cd714d..74d6d287a 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -966,7 +966,7 @@ bool t_rpc_command_executor::print_transaction_pool_stats() {
denom = n-1;
for (i=0; i<denom; i++)
times[i] = i * numer / denom;
- times[i] = res.pool_stats.oldest;
+ times[i] = now - res.pool_stats.oldest;
} else
{
numer = now - res.pool_stats.oldest;