-
Notifications
You must be signed in to change notification settings - Fork 997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd: support human friendly values for bandwidth options #4567
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4567 +/- ##
==========================================
- Coverage 55.67% 55.62% -0.06%
==========================================
Files 157 158 +1
Lines 43021 43060 +39
==========================================
Hits 23950 23950
- Misses 16410 16448 +38
- Partials 2661 2662 +1 ☔ View full report in Codecov by Sentry. |
@davies Please review each commit individually. |
pkg/sync/sync.go
Outdated
@@ -1212,7 +1212,7 @@ func Sync(src, dst object.ObjectStorage, config *Config) error { | |||
wg := sync.WaitGroup{} | |||
concurrent = make(chan int, config.Threads) | |||
if config.BWLimit > 0 { | |||
bps := float64(int64(config.BWLimit)*(1<<20)/8) * 0.85 // 15% overhead | |||
bps := float64(config.BWLimit*(1<<20)/8) * 0.85 // 15% overhead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1000 or 1024?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be 1000
No description provided.