diff --git a/rabin/global/index.c b/rabin/global/index.c index 6514e8d..684bb60 100644 --- a/rabin/global/index.c +++ b/rabin/global/index.c @@ -190,10 +190,10 @@ set_cfg: *memreqd = MEM_REQD(*hash_slots, *hash_entry_size); /* - * If memory required is more than thrice the indicated memory limit then + * If memory required is more than twice the indicated memory limit then * we switch to Segmented Similarity based dedupe. */ - if (*memreqd > (memlimit * 3) && cfg->dedupe_mode == MODE_SIMPLE && + if (*memreqd > (memlimit * 2) && cfg->dedupe_mode == MODE_SIMPLE && *pct_interval == 0 && tmppath != NULL) { *pct_interval = DEFAULT_PCT_INTERVAL; set_user = 1;