Closed fenelon closed 8 years ago
Looks like you Redis has lots of key deletes. I think here is two or three places there i do not take this in attention. Could you try more one patch?
if total == 0:
self.fieldAvgCount = 0
elif total > 1:
self.fieldAvgCount = statistics.mean(obj.count for obj in g3)
else:
self.fieldAvgCount = min((obj.count for obj in g3))
File rule\Hash.py line 60?
If this patch fix the Hash rule - i add same logic for List/Set and upload new version.
I've posted a pull request with your fix and another divided by zero issue. Works perfectly now. #24
tnx, i merge and publish tomorrow
After trying @misterion's fix:
the problem looks like