change 6->3 decimal resolution, to conserve terminal realestate

This commit is contained in:
Harshavardhana
2023-09-28 10:48:30 -07:00
parent c3c899c365
commit de00cf08a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
//
+1 -1
View File
@@ -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)))),
})
}