Commit 6db781d0 authored by Mario Hock's avatar Mario Hock

log irq

parent 3606d110
......@@ -71,7 +71,7 @@ class MeasurementLogger:
# set up "CPU" class
cpu = LoggingClass( name = "CPU",
fields = ("util", "idle", "usr", "system", "softirq", "other"),
fields = ("util", "idle", "usr", "system", "irq", "softirq", "other"),
siblings = [ "CPU" + str(i) for i in range(0,num_cpus) ],
description = "CPU utilization in percent" )
class_defs["CPU"] = cpu
......@@ -152,9 +152,9 @@ class MeasurementLogger:
def _log_cpus(self, measurement, out_vector):
for cpu in measurement.cpu_times_percent:
cpu_util = 100-cpu.idle
other = 100 - sum( (cpu.user, cpu.system, cpu.softirq, cpu.idle) )
other = 100 - sum( (cpu.user, cpu.system, cpu.irq, cpu.softirq, cpu.idle) )
out_vector.extend( [cpu_util, cpu.idle, cpu.user, cpu.system, cpu.softirq, other] )
out_vector.extend( [cpu_util, cpu.idle, cpu.user, cpu.system, cpu.irq, cpu.softirq, other] )
def _log_nics(self, measurement, out_vector):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment