Skip to content

Commit 84fcc97

Browse files
committed
fix: yet another dashboard panic
Fixes #10088 Signed-off-by: Andrey Smirnov <[email protected]>
1 parent 6d605fc commit 84fcc97

File tree

1 file changed

+2
-2
lines changed
  • internal/pkg/dashboard/apidata

1 file changed

+2
-2
lines changed

internal/pkg/dashboard/apidata/node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ func (node *Node) UpdateDiff(old *Node) {
179179
node.SystemStatDiff = &machine.SystemStat{
180180
// TODO: support other fields
181181
CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()),
182-
ContextSwitches: node.SystemStat.ContextSwitches - old.SystemStat.ContextSwitches,
183-
ProcessCreated: node.SystemStat.ProcessCreated - old.SystemStat.ProcessCreated,
182+
ContextSwitches: node.SystemStat.GetContextSwitches() - old.SystemStat.GetContextSwitches(),
183+
ProcessCreated: node.SystemStat.GetProcessCreated() - old.SystemStat.GetProcessCreated(),
184184
}
185185
}
186186

0 commit comments

Comments
 (0)