change 6->3 decimal resolution, to conserve terminal realestate
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2022 MinIO, Inc.
|
||||
// Copyright (c) 2015-2023 MinIO, Inc.
|
||||
//
|
||||
// This file is part of MinIO Object Storage stack
|
||||
//
|
||||
|
||||
@@ -186,7 +186,7 @@ func (m *traceUI) View() string {
|
||||
whiteStyle.Render(humanize.IBytes(stats.loadAPIBytesTX())),
|
||||
whiteStyle.Render(fmt.Sprintf("%d", stats.loadAPICall())),
|
||||
whiteStyle.Render(fmt.Sprintf("%d", stats.loadAPIErrors())),
|
||||
whiteStyle.Render(fmt.Sprintf("%.06f s", time.Duration(stats.loadAPIDurationNanos()/stats.loadAPICall()).Seconds())),
|
||||
whiteStyle.Render(fmt.Sprintf("%.03f s", time.Duration(stats.loadAPIDurationNanos()/stats.loadAPICall()).Seconds())),
|
||||
whiteStyle.Render(fmt.Sprintf("%s/s", humanize.IBytes(uint64(bytes/secs)))),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user