Skip to content

Commit f8e9b98

Browse files
committed
fix regulator not working after 35min, wrong conversion
1 parent 27402a0 commit f8e9b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RateRegulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class RateRegulator {
7676
void updateTimeNext() {
7777
if (tnextCount >= tnextFullRefreshInterval) {
7878
// full update, calculated from t0
79-
tnext = t0 + std::chrono::microseconds((int)(nItemsAccepted * period));
79+
tnext = t0 + std::chrono::microseconds((unsigned long long)(nItemsAccepted * period));
8080
tnextCount = 1;
8181
} else {
8282
// quick update, by incrementing period

0 commit comments

Comments
 (0)