From 735b13ef54007e49d41c1827ebcf5d2dfc3cab1b Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 15 Mar 2023 15:22:36 +0100 Subject: [PATCH] fixed build memory peak rendering as hardly readable kb size --- buildmanager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildmanager.go b/buildmanager.go index 452711f..072d58b 100644 --- a/buildmanager.go +++ b/buildmanager.go @@ -240,7 +240,7 @@ func (b *BuildManager) htmlWorker(ctx context.Context) { Svn2GitVersion string BuildDate string BuildDuration time.Duration - BuildMemory datasize.ByteSize + BuildMemory *string Checked string Log string LTO bool @@ -317,7 +317,8 @@ func (b *BuildManager) htmlWorker(ctx context.Context) { } if pkg.MaxRss != nil { - addPkg.BuildMemory = datasize.ByteSize(*pkg.MaxRss) * datasize.KB + hrSize := (datasize.ByteSize(*pkg.MaxRss) * datasize.KB).HumanReadable() + addPkg.BuildMemory = &hrSize } switch pkg.Lto {