Skip to content

Commit

Permalink
Update perfd.go
Browse files Browse the repository at this point in the history
Signed-off-by: Eason <[email protected]>
  • Loading branch information
ZhouYixun authored Jun 6, 2023
1 parent 5c54c4b commit e3e0a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perfd.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func (c *perfdSysmontap) parseSystemData(dataArray []interface{}) {
var dataTime uint64 = 0
for _, value := range dataArray {
t, ok := value.(map[string]interface{})
if ok && t["SystemCPUUsage"] != nil && t["EndMachAbsTime"].(uint64) > dataTime {
if ok && t["SystemCPUUsage"] != nil && t["EndMachAbsTime"]!=nil && t["EndMachAbsTime"].(uint64) > dataTime {
systemInfo = t
dataTime = t["EndMachAbsTime"].(uint64)
}
Expand Down

0 comments on commit e3e0a17

Please sign in to comment.