fix: isExcluded and isCleared were exactly wrong
fix: isCleared should mean the process is dead
This commit is contained in:
parent
507b3bacb0
commit
7315e5da55
|
@ -1266,7 +1266,7 @@ public:
|
|||
processesDead.push_back(processInfo);
|
||||
excluded++;
|
||||
}
|
||||
else if (!processInfo->isCleared()) {
|
||||
else if (processInfo->isCleared()) {
|
||||
processesDead.push_back(processInfo);
|
||||
cleared++;
|
||||
}
|
||||
|
|
|
@ -77,8 +77,8 @@ public:
|
|||
|
||||
bool isReliable() const { return !failed && fault_injection_p1 == 0 && fault_injection_p2 == 0; }
|
||||
bool isAvailable() const { return !isExcluded() && isReliable(); }
|
||||
bool isExcluded() const { return !excluded; }
|
||||
bool isCleared() const { return !cleared; }
|
||||
bool isExcluded() const { return excluded; }
|
||||
bool isCleared() const { return cleared; }
|
||||
|
||||
// Returns true if the class represents an acceptable worker
|
||||
bool isAvailableClass() const {
|
||||
|
|
Loading…
Reference in New Issue