From 6e887d6a20309d4328cbecf33a5f430e744af808 Mon Sep 17 00:00:00 2001 From: Artemiy Dudko Date: Mon, 16 May 2022 23:08:44 +0300 Subject: [PATCH] fix-linux-memory-usage-stat --- src/core/stats_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/stats_linux.go b/src/core/stats_linux.go index 394565134..842119f21 100644 --- a/src/core/stats_linux.go +++ b/src/core/stats_linux.go @@ -1,3 +1,4 @@ +//go:build linux // +build linux /* @@ -68,7 +69,7 @@ func (ds *dockerService) getContainerStats(containerID string) (*runtimeapi.Cont Memory: &runtimeapi.MemoryUsage{ Timestamp: timestamp, WorkingSetBytes: &runtimeapi.UInt64Value{ - Value: dockerStats.MemoryStats.PrivateWorkingSet, + Value: dockerStats.MemoryStats.Usage, }, }, WritableLayer: &runtimeapi.FilesystemUsage{