From 8db68a57f522c6aa76e74d7a94147b5f1eb3deb6 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@symas.com>
Date: Mon, 10 Jul 2017 15:47:10 +0100
Subject: [PATCH] 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
---
 src/daemon/rpc_command_executor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;