aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-22 22:01:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-31 22:28:23 +0000
commitdc1a0530813b6febadc65a270e793e3ba6b801bc (patch)
tree61fbd1da5c6c4710089ba0dedc49be256ae8b3cf /src
parentMerge pull request #6582 (diff)
downloadmonero-dc1a0530813b6febadc65a270e793e3ba6b801bc.tar.xz
rpc: fix comparison of seconds vs microseconds
Diffstat (limited to 'src')
-rw-r--r--src/rpc/rpc_payment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rpc_payment.cpp b/src/rpc/rpc_payment.cpp
index 2b9c19f57..852db9f9a 100644
--- a/src/rpc/rpc_payment.cpp
+++ b/src/rpc/rpc_payment.cpp
@@ -358,7 +358,7 @@ namespace cryptonote
for (std::unordered_map<crypto::public_key, client_info>::iterator i = m_client_info.begin(); i != m_client_info.end(); )
{
std::unordered_map<crypto::public_key, client_info>::iterator j = i++;
- const time_t t = std::max(j->second.last_request_timestamp, j->second.update_time);
+ const time_t t = std::max(j->second.last_request_timestamp / 1000000, j->second.update_time);
const bool erase = t < ((j->second.credits == 0) ? threshold0 : threshold);
if (erase)
{