fix memory val not geeting updated

This commit is contained in:
2025-03-22 21:46:51 +01:00
parent daf6f13542
commit 48c66d429a
2 changed files with 8 additions and 5 deletions

View File

@@ -855,8 +855,7 @@ func pollMemoryUsage(pid int, interval time.Duration, done chan bool, peakMem *i
case <-done:
return
default:
totalRSS := int64(0)
totalSwap := int64(0)
var totalRSS, totalSwap int64
rootStats, err := getMemoryStats(pid)
if err == nil {