netrender: draft code for cluster usage per job calculations. Eventually, this will...
[blender.git] / release / io / netrender / balancing.py
index b1a461bf0ca82a47bf8f6a3869373ff0b52b469a..c167594e1c55d8f00df773ffce519ffb57033105 100644 (file)
@@ -91,4 +91,4 @@ class ExcludeSlavesLimit(ExclusionRule):
                self.limit = limit
                
        def test(self, job):
-               return not ( self.count_jobs() == 1 or self.count_slaves() == 1 or float(job.countSlaves() + 1) / self.count_slaves() <= self.limit )
+               return not ( self.count_jobs() == 1 or self.count_slaves() <= 1 or float(job.countSlaves() + 1) / self.count_slaves() <= self.limit )