We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d605fc commit 84fcc97Copy full SHA for 84fcc97
internal/pkg/dashboard/apidata/node.go
@@ -179,8 +179,8 @@ func (node *Node) UpdateDiff(old *Node) {
179
node.SystemStatDiff = &machine.SystemStat{
180
// TODO: support other fields
181
CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()),
182
- ContextSwitches: node.SystemStat.ContextSwitches - old.SystemStat.ContextSwitches,
183
- ProcessCreated: node.SystemStat.ProcessCreated - old.SystemStat.ProcessCreated,
+ ContextSwitches: node.SystemStat.GetContextSwitches() - old.SystemStat.GetContextSwitches(),
+ ProcessCreated: node.SystemStat.GetProcessCreated() - old.SystemStat.GetProcessCreated(),
184
}
185
186
0 commit comments