History

Time calculation fix.

Andrzej Kapolka committed 12 years ago

Commit 4840c441 parent 311d1331 file · +1 −1Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

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