diff options
| author | Silarn <jrim@rimpo.org> | 2019-02-02 13:23:31 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:31:19 -0600 |
| commit | 91e909bc45e8b33b0a774c71ed28175243f0cccf (patch) | |
| tree | fb4b3008632f6a3092e3ab3273c085015c5d1193 /src/nexusinterface.cpp | |
| parent | 17b36957ffe97af8f8bcb08b6cb41568ef6becdb (diff) | |
Request pools are not combined, we need to use the max of both pools.
Diffstat (limited to 'src/nexusinterface.cpp')
| -rw-r--r-- | src/nexusinterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index 55201c2b..bc45d8f6 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -505,7 +505,7 @@ void NexusInterface::nextRequest() } } - if (m_RemainingDailyRequests + m_RemainingHourlyRequests <= 0) { + if (std::max(m_RemainingDailyRequests, m_RemainingHourlyRequests) <= 0) { m_RequestQueue.clear(); QTime time = QTime::currentTime(); QTime targetTime; |
