We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27402a0 commit f8e9b98Copy full SHA for f8e9b98
src/RateRegulator.h
@@ -76,7 +76,7 @@ class RateRegulator {
76
void updateTimeNext() {
77
if (tnextCount >= tnextFullRefreshInterval) {
78
// full update, calculated from t0
79
- tnext = t0 + std::chrono::microseconds((int)(nItemsAccepted * period));
+ tnext = t0 + std::chrono::microseconds((unsigned long long)(nItemsAccepted * period));
80
tnextCount = 1;
81
} else {
82
// quick update, by incrementing period
0 commit comments