- Call self.checkstamp() in the cpu load parsing functions in case the
timestamp has wrapped.
This commit is contained in:
parent
d74da89b42
commit
8d13141666
@ -990,6 +990,8 @@ def sched_prio(self, cpu, timestamp, td, pcomm, prio, newprio, bytd, bypcomm):
|
||||
Lend(bythread, cpu, timestamp, newprio, thread)
|
||||
|
||||
def cpuload(self, cpu, timestamp, count):
|
||||
if (self.checkstamp(timestamp) == 0):
|
||||
return
|
||||
cpu = int(cpu)
|
||||
try:
|
||||
load = self.load[cpu]
|
||||
@ -1000,6 +1002,8 @@ def cpuload(self, cpu, timestamp, count):
|
||||
Count(load, cpu, timestamp, count)
|
||||
|
||||
def loadglobal(self, cpu, timestamp, count):
|
||||
if (self.checkstamp(timestamp) == 0):
|
||||
return
|
||||
cpu = 0
|
||||
try:
|
||||
load = self.load[cpu]
|
||||
|
Loading…
Reference in New Issue
Block a user