Skip to content

Commit

Permalink
metric: fix format
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Dec 17, 2024
1 parent 76a9f21 commit cd08433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (h *apiConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func printMemStats(w io.Writer, lastGC bool) {
var memstats runtime.MemStats
runtime.ReadMemStats(&memstats)
fprintf(w, "%-20s: %s %s\n", "Heap Next GC",
fprintf(w, "%-20s: %s < %s\n", "Heap Next GC",
formats.IECBytes(float64(memstats.HeapAlloc)),
formats.IECBytes(float64(memstats.NextGC)))
fprintf(w, "%-20s: %s ≤ %s\n", "Heap In-use",
Expand Down

0 comments on commit cd08433

Please sign in to comment.