Skip to content

Commit

Permalink
Merge pull request #3 from pioh/linux-memory-usage-stat
Browse files Browse the repository at this point in the history
fix-linux-memory-usage-stat
  • Loading branch information
jandubois committed May 20, 2022
2 parents 4afa75d + 6e887d6 commit 2b9ce23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/stats_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 2b9ce23

Please sign in to comment.