aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-06-19 16:06:33 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-06-19 16:06:33 -0500
commitd825252b7d7013620424a466e031cefdb307bcf3 (patch)
treec4c5cd61c395ca3d153e8f1bac9f94b48b7e88ad /src
parentMerge pull request #6643 (diff)
parentrpc: fix comparison of seconds vs microseconds (diff)
downloadmonero-d825252b7d7013620424a466e031cefdb307bcf3.tar.xz
Merge pull request #6644
0569e63 rpc: fix comparison of seconds vs microseconds (moneromooo-monero)
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 6cd52523f..ab6831382 100644
--- a/src/rpc/rpc_payment.cpp
+++ b/src/rpc/rpc_payment.cpp
@@ -366,7 +366,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)
{