cmd/uplink: don't show throughput during copy, since it's wrong
we can bring it back once we understand this issue: https://github.com/vbauerster/mpb/issues/135 Change-Id: I2cbdcfc260786e1ab08d1badc78770a792785650
This commit is contained in:
parent
8568e49578
commit
0467903b52
@ -15,7 +15,6 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/VividCortex/ewma"
|
||||
"github.com/vbauerster/mpb/v8"
|
||||
"github.com/vbauerster/mpb/v8/decor"
|
||||
"github.com/zeebo/clingy"
|
||||
@ -594,9 +593,6 @@ func (c *cmdCp) parallelCopy(
|
||||
func newProgressBar(progress *mpb.Progress, name string, which, total int) *mpb.Bar {
|
||||
const counterFmt = " % .2f / % .2f"
|
||||
const percentageFmt = "%.2f "
|
||||
const speedFmt = "% .2f"
|
||||
|
||||
movingAverage := ewma.NewMovingAverage()
|
||||
|
||||
prepends := []decor.Decorator{decor.Name(name + " ")}
|
||||
if total > 1 {
|
||||
@ -606,7 +602,6 @@ func newProgressBar(progress *mpb.Progress, name string, which, total int) *mpb.
|
||||
|
||||
appends := []decor.Decorator{
|
||||
decor.NewPercentage(percentageFmt),
|
||||
decor.MovingAverageSpeed(decor.SizeB1024(1024), speedFmt, movingAverage),
|
||||
}
|
||||
|
||||
return progress.AddBar(0,
|
||||
|
2
go.mod
2
go.mod
@ -3,7 +3,6 @@ module storj.io/storj
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/VividCortex/ewma v1.2.0
|
||||
github.com/alessio/shellescape v1.2.2
|
||||
github.com/alicebob/miniredis/v2 v2.13.3
|
||||
github.com/blang/semver v3.5.1+incompatible
|
||||
@ -73,6 +72,7 @@ require (
|
||||
cloud.google.com/go/compute v1.19.0 // indirect
|
||||
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
||||
cloud.google.com/go/profiler v0.3.1 // indirect
|
||||
github.com/VividCortex/ewma v1.2.0 // indirect
|
||||
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
|
||||
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
|
||||
github.com/apache/thrift v0.12.0 // indirect
|
||||
|
Loading…
Reference in New Issue
Block a user