- Call self.checkstamp() in the cpu load parsing functions in case the

timestamp has wrapped.
This commit is contained in:
jeff 2004-12-26 02:02:34 +00:00
parent c54e919f93
commit 3c1a6e365e

View File

@ -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]