mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 19:14:56 +02:00
Time calculation fix.
This commit is contained in:
parent
311d1332f1
commit
4840c44d7c
1 changed files with 1 additions and 1 deletions
|
@ -705,7 +705,7 @@ Throttle::Throttle() :
|
|||
bool Throttle::shouldThrottle(int bytes) {
|
||||
// clear expired buckets
|
||||
qint64 now = QDateTime::currentMSecsSinceEpoch();
|
||||
while (!_buckets.isEmpty() && _buckets.first().first >= now) {
|
||||
while (!_buckets.isEmpty() && now >= _buckets.first().first) {
|
||||
_total -= _buckets.takeFirst().second;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue