diff --git a/internal/pkg/dashboard/apidata/node.go b/internal/pkg/dashboard/apidata/node.go index b8da10fd16..940f1e1adf 100644 --- a/internal/pkg/dashboard/apidata/node.go +++ b/internal/pkg/dashboard/apidata/node.go @@ -179,8 +179,8 @@ func (node *Node) UpdateDiff(old *Node) { node.SystemStatDiff = &machine.SystemStat{ // TODO: support other fields CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()), - ContextSwitches: node.SystemStat.ContextSwitches - old.SystemStat.ContextSwitches, - ProcessCreated: node.SystemStat.ProcessCreated - old.SystemStat.ProcessCreated, + ContextSwitches: node.SystemStat.GetContextSwitches() - old.SystemStat.GetContextSwitches(), + ProcessCreated: node.SystemStat.GetProcessCreated() - old.SystemStat.GetProcessCreated(), } }