summaryrefslogtreecommitdiff
path: root/src/expire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expire.c')
-rw-r--r--src/expire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expire.c b/src/expire.c
index 275a735a7..d2945524c 100644
--- a/src/expire.c
+++ b/src/expire.c
@@ -224,7 +224,7 @@ void activeExpireCycle(int type) {
/* When there are less than 1% filled slots, sampling the key
* space is expensive, so stop here waiting for better times...
* The dictionary will be resized asap. */
- if (num && slots > DICT_HT_INITIAL_SIZE &&
+ if (slots > DICT_HT_INITIAL_SIZE &&
(num*100/slots < 1)) break;
/* The main collection cycle. Sample random keys among keys