Changeset 2692 for pykota/trunk/pykota/tool.py
- Timestamp:
- 02/14/06 16:18:45 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r2657 r2692 458 458 if enforcement == "STRICT" : 459 459 val -= self.softwareJobPrice # use precomputed size. 460 if val <= 0.0 : 460 balancezero = self.config.getBalanceZero() 461 if val <= balancezero : 461 462 action = "DENY" 462 463 elif val <= self.config.getPoorMan() : … … 464 465 else : 465 466 action = "ALLOW" 466 if (enforcement == "STRICT") and (val == 0.0) :467 if (enforcement == "STRICT") and (val == balancezero) : 467 468 action = "WARN" # we can still print until account is 0 468 469 else : … … 549 550 if enforcement == "STRICT" : 550 551 val -= self.softwareJobPrice # use precomputed size. 551 if val <= 0.0 : 552 balancezero = self.config.getBalanceZero() 553 if val <= balancezero : 552 554 action = "DENY" 553 555 elif val <= self.config.getPoorMan() : … … 555 557 else : 556 558 action = "ALLOW" 557 if (enforcement == "STRICT") and (val == 0.0) :559 if (enforcement == "STRICT") and (val == balancezero) : 558 560 action = "WARN" # we can still print until account is 0 559 561 return action