Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -705,7 +705,7 @@ Throttle::Throttle() : · 704 unmodified lines | ||
| 705 | 705 | bool Throttle::shouldThrottle(int bytes) { |
| 706 | 706 | // clear expired buckets |
| 707 | 707 | qint64 now = QDateTime::currentMSecsSinceEpoch(); |
| 708 | − while (!_buckets.isEmpty() && _buckets.first().first >= now) { | |
| 708 | + while (!_buckets.isEmpty() && now >= _buckets.first().first) { | |
| 709 | 709 | _total -= _buckets.takeFirst().second; |
| 710 | 710 | } |
| 711 | 711 | |