Skip to content

plugins/cpu: Ignore invalid CPU info when reading /proc/cpuinfo

Arjen Hiemstra requested to merge work/ahiemstra/armcpuinfo into master
  • plugins/cpu: Ignore invalid CPU info when reading /proc/cpuinfo

On some systems, /proc/cpuinfo contains non-core related data. When that happens, we would end up creating an invalid CpuInfo object that would later on crash ksystemstats. Instead, ignore said CpuInfo object properly so we don't crash.

Patch based on Jonathan L Hanmann's suggestion from the bug report.

BUG: 493093

Merge request reports

Loading