Skip to content

Commit 1032726

Browse files
change 6->3 decimal resolution, to conserve terminal realestate
1 parent c3c899c commit 1032726

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/support-top-api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015-2022 MinIO, Inc.
1+
// Copyright (c) 2015-2023 MinIO, Inc.
22
//
33
// This file is part of MinIO Object Storage stack
44
//

cmd/top-api-spinner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (m *traceUI) View() string {
186186
whiteStyle.Render(humanize.IBytes(stats.loadAPIBytesTX())),
187187
whiteStyle.Render(fmt.Sprintf("%d", stats.loadAPICall())),
188188
whiteStyle.Render(fmt.Sprintf("%d", stats.loadAPIErrors())),
189-
whiteStyle.Render(fmt.Sprintf("%.06f s", time.Duration(stats.loadAPIDurationNanos()/stats.loadAPICall()).Seconds())),
189+
whiteStyle.Render(fmt.Sprintf("%.03f s", time.Duration(stats.loadAPIDurationNanos()/stats.loadAPICall()).Seconds())),
190190
whiteStyle.Render(fmt.Sprintf("%s/s", humanize.IBytes(uint64(bytes/secs)))),
191191
})
192192
}

0 commit comments

Comments
 (0)