fix: miss count for 'mc support top drive' (#4624)

This commit is contained in:
jiuker
2023-07-06 08:46:12 -07:00
committed by GitHub
parent 00b68bfa16
commit 72958227ad
+2
View File
@@ -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 {