diff --git a/cmd/talosctl/cmd/talos/processes.go b/cmd/talosctl/cmd/talos/processes.go index aefff1929..b22f94f80 100644 --- a/cmd/talosctl/cmd/talos/processes.go +++ b/cmd/talosctl/cmd/talos/processes.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "code.cloudfoundry.org/bytefmt" + "github.com/dustin/go-humanize" ui "github.com/gizak/termui/v3" "github.com/gizak/termui/v3/widgets" "github.com/ryanuber/columnize" @@ -218,7 +218,7 @@ func processesOutput(ctx context.Context, c *client.Client) (output string, err s = append(s, fmt.Sprintf("%12s | %6d | %1s | %4d | %8.2f | %7s | %7s | %s", - node, p.Pid, p.State, p.Threads, p.CpuTime, bytefmt.ByteSize(p.VirtualMemory), bytefmt.ByteSize(p.ResidentMemory), args)) + node, p.Pid, p.State, p.Threads, p.CpuTime, humanize.Bytes(p.VirtualMemory), humanize.Bytes(p.ResidentMemory), args)) } } diff --git a/go.mod b/go.mod index 262099ec4..1aaab081b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.13 replace github.com/docker/distribution v2.7.1+incompatible => github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible require ( - code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48 github.com/BurntSushi/toml v0.3.1 github.com/Microsoft/hcsshim v0.8.9 // indirect github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 diff --git a/go.sum b/go.sum index 0d40c9e57..daa23a739 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,6 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.2.1 h1:3G66kIUChoxgxJPzwpWroEnXjfbLuZgbCNAHIvN/sKY= cloud.google.com/go/storage v1.2.1/go.mod h1:kpwTAahUQmhyVVGgLWQh2GdyPDZSA3UJDjMm/fDV2oQ= -code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48 h1:/EMHruHCFXR9xClkGV/t0rmHrdhX4+trQUcBqjwc9xE= -code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48/go.mod h1:wN/zk7mhREp/oviagqUXY3EwuHhWyOvAdsn5Y4CzOrc= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=