Skip to content
Snippets Groups Projects
Commit f04c03cb authored by Jono Wenger's avatar Jono Wenger
Browse files

Move file transfer max throughput info print before new rate limiter

parent 437c1086
No related branches found
No related tags found
3 merge requests!510Release,!226WIP: Api2.0,!207WIP: Client Restructure
......@@ -35,10 +35,10 @@ func (m *manager) batchBuilderThread(stop *stoppable.Single) {
rl := ratelimit.NewUnlimited()
if m.params.MaxThroughput > 0 {
rate := m.params.MaxThroughput / avgSendSize
rl = ratelimit.New(rate, ratelimit.WithoutSlack)
jww.INFO.Printf("[FT] Max throughput is %d. "+
"File transfer will be rate limited to %d parts per second.",
m.params.MaxThroughput, rate)
rl = ratelimit.New(rate, ratelimit.WithoutSlack)
} else {
jww.WARN.Printf("[FT] Max throughput is %d. "+
"File transfer will not be rate limited.", m.params.MaxThroughput)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment