Skip to content

Commit d767b02

Browse files
committed
fix: update traffic usage display format in Ping response
1 parent 3c1111a commit d767b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/node/app_ping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (app *App) Ping(w http.ResponseWriter, _ *http.Request) {
2727
fmt.Sprintf("GOROUTINE: %d", goroutineCount),
2828
fmt.Sprintf("MEMORY.Alloc: %.2fMB", float64(memStats.Alloc)/1024/1024),
2929
fmt.Sprintf("MEMORY.TotalAlloc: %.2fMB", float64(memStats.TotalAlloc)/1024/1024),
30-
fmt.Sprintf("Used Traffic KB: %.2fMB", n),
30+
fmt.Sprintf("Used Traffic: %d KB", n),
3131
}
3232
w.Write([]byte(strings.Join(lines, "\n\n")))
3333
}

0 commit comments

Comments
 (0)