From 72958227ad656dbff630dfb542ef5d3987518cea Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Thu, 6 Jul 2023 23:46:12 +0800 Subject: [PATCH] fix: miss count for 'mc support top drive' (#4624) --- cmd/support-top-drive.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/support-top-drive.go b/cmd/support-top-drive.go index d6884747..fd9d310f 100644 --- a/cmd/support-top-drive.go +++ b/cmd/support-top-drive.go @@ -97,6 +97,7 @@ func mainSupportTopDrive(ctx *cli.Context) error { Type: madmin.MetricsDisk, Interval: time.Second, ByDisk: true, + N: ctx.Int("count"), } p := tea.NewProgram(initTopDriveUI(disks, ctx.Int("count"))) @@ -114,6 +115,7 @@ func mainSupportTopDrive(ctx *cli.Context) error { if e != nil { fatalIf(probe.NewError(e), "Unable to fetch top drives events") } + p.Quit() }() if _, e := p.Run(); e != nil {