mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
shimv2: Add missing page size to Hugetlb Stat
Fixes: #1856 Signed-off-by: Odin Ugedal <odin@ugedal.com>
This commit is contained in:
parent
ed693fe3df
commit
da7f5f3796
@ -31,13 +31,14 @@ func marshalMetrics(s *service, containerID string) (*google_protobuf.Any, error
|
||||
|
||||
func statsToMetrics(cgStats *vc.CgroupStats) *cgroups.Metrics {
|
||||
var hugetlb []*cgroups.HugetlbStat
|
||||
for _, v := range cgStats.HugetlbStats {
|
||||
for pageSize, v := range cgStats.HugetlbStats {
|
||||
hugetlb = append(
|
||||
hugetlb,
|
||||
&cgroups.HugetlbStat{
|
||||
Usage: v.Usage,
|
||||
Max: v.MaxUsage,
|
||||
Failcnt: v.Failcnt,
|
||||
Usage: v.Usage,
|
||||
Max: v.MaxUsage,
|
||||
Failcnt: v.Failcnt,
|
||||
Pagesize: pageSize,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user