We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ff2229 + 5453395 commit 625768aCopy full SHA for 625768a
pkg/oc/admin/migrate/storage/storage.go
@@ -373,5 +373,5 @@ func (t *tokenLimiter) getDuration(n int) time.Duration {
373
// we use a burst value that scales linearly with the number of workers
374
func newTokenLimiter(bandwidth, workers int) *tokenLimiter {
375
burst := 100 * kbToBytes * workers // 100 KB of burst per worker
376
- return &tokenLimiter{burst: burst, rateLimiter: rate.NewLimiter(rate.Limit(bandwidth*mbToKB*kbToBytes/byteToBits), burst), nowFunc: time.Now}
+ return &tokenLimiter{burst: burst, rateLimiter: rate.NewLimiter(rate.Limit(bandwidth*mbToKB*kbToBytes)/byteToBits, burst), nowFunc: time.Now}
377
}
0 commit comments