From 439e1c1b9750ef5c5b4b09783ad453543217bcb5 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 24 Feb 2015 12:16:46 +0100 Subject: [PATCH] static-delta: increase threshold for rollsum to 50% It favours bsdiff usage for files that are not very rollsum friendly. Signed-off-by: Giuseppe Scrivano --- src/libostree/ostree-repo-static-delta-compilation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 968b4601..a4e7ae42 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -568,10 +568,10 @@ try_content_rollsum (OstreeRepo *repo, { guint match_ratio = (matches->bufmatches*100)/matches->total; - /* Only proceed if the file contains (arbitrary) more than 25% of + /* Only proceed if the file contains (arbitrary) more than 50% of * the previous chunks. */ - if (match_ratio < 25) + if (match_ratio < 50) { ret = TRUE; goto out;