Skip to content

Commit

Permalink
Merge pull request #2486 from tedyu/cont-stat-eq
Browse files Browse the repository at this point in the history
Add missing fields to ContainerStats#StatsEq
  • Loading branch information
dashpole authored Apr 9, 2020
2 parents 84ef530 + 4824925 commit 49f4075
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 49f4075

Please sign in to comment.