mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fixing bug with windows criStatsProvider sometimes not reporting AvailableBytes correctly
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
This commit is contained in:
parent
3bbf0cc47f
commit
5691a7899e
@ -142,7 +142,7 @@ func (p *criStatsProvider) makeWinContainerStats(
|
||||
result.Memory.AvailableBytes = &stats.Memory.AvailableBytes.Value
|
||||
}
|
||||
if stats.Memory.PageFaults != nil {
|
||||
result.Memory.AvailableBytes = &stats.Memory.PageFaults.Value
|
||||
result.Memory.PageFaults = &stats.Memory.PageFaults.Value
|
||||
}
|
||||
} else {
|
||||
result.Memory.Time = metav1.NewTime(time.Unix(0, time.Now().UnixNano()))
|
||||
|
Loading…
Reference in New Issue
Block a user