From f9e55bccc2e25b11fa809c4b0ecec658a1dfbea3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 10:07:26 +0800 Subject: Don't report memory stats to the template --- forged/internal/unsorted/http_handle_index.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/forged/internal/unsorted/http_handle_index.go b/forged/internal/unsorted/http_handle_index.go index 339344e..a3141f4 100644 --- a/forged/internal/unsorted/http_handle_index.go +++ b/forged/internal/unsorted/http_handle_index.go @@ -5,9 +5,7 @@ package unsorted import ( "net/http" - "runtime" - "github.com/dustin/go-humanize" "go.lindenii.runxiyu.org/forge/forged/internal/web" ) @@ -24,9 +22,5 @@ func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Reque } params["groups"] = groups - // Memory currently allocated - memstats := runtime.MemStats{} //exhaustruct:ignore - runtime.ReadMemStats(&memstats) - params["mem"] = humanize.IBytes(memstats.Alloc) s.renderTemplate(writer, "index", params) } -- cgit v1.2.3