fixed build memory peak rendering as hardly readable kb size

This commit is contained in:
2023-03-15 15:22:36 +01:00
parent afdb796b7c
commit 735b13ef54

View File

@@ -240,7 +240,7 @@ func (b *BuildManager) htmlWorker(ctx context.Context) {
Svn2GitVersion string Svn2GitVersion string
BuildDate string BuildDate string
BuildDuration time.Duration BuildDuration time.Duration
BuildMemory datasize.ByteSize BuildMemory *string
Checked string Checked string
Log string Log string
LTO bool LTO bool
@@ -317,7 +317,8 @@ func (b *BuildManager) htmlWorker(ctx context.Context) {
} }
if pkg.MaxRss != nil { 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 { switch pkg.Lto {