Skip to content

Commit

Permalink
Add missing fields to ContainerStats#StatsEq
Browse files Browse the repository at this point in the history
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
  • Loading branch information
tedyu committed Apr 9, 2020
1 parent 84ef530 commit 4824925
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions info/v1/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,15 @@ func (a *ContainerStats) StatsEq(b *ContainerStats) bool {
if !reflect.DeepEqual(a.Filesystem, b.Filesystem) {
return false
}
if !reflect.DeepEqual(a.TaskStats, b.TaskStats) {
return false
}
if !reflect.DeepEqual(a.Accelerators, b.Accelerators) {
return false
}
if !reflect.DeepEqual(a.CustomMetrics, b.CustomMetrics) {
return false
}
return true
}

Expand Down

0 comments on commit 4824925

Please sign in to comment.