just some threshold fixes
This commit is contained in:
parent
f0beaa7190
commit
dcf3bc3fbc
1 changed files with 3 additions and 1 deletions
|
|
@ -33,11 +33,13 @@ class Job:
|
|||
|
||||
def handle_threshold(self, serviceThreshold, executionSucessful):
|
||||
if executionSucessful:
|
||||
pass
|
||||
if self.jobThreshold > 0:
|
||||
self.jobThreshold -= 1
|
||||
else:
|
||||
self.jobThreshold += 1
|
||||
|
||||
if self.jobThreshold >= serviceThreshold:
|
||||
self.log.d("ARGGHHH!!")
|
||||
self.handle_alarm(self.jobThreshold-serviceThreshold)
|
||||
|
||||
def handle_alarm(self, threholdOffset):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue