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 <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-02-24 12:16:46 +01:00 committed by Colin Walters
parent 3f3bb8e37d
commit 439e1c1b97
1 changed files with 2 additions and 2 deletions

View File

@ -568,10 +568,10 @@ try_content_rollsum (OstreeRepo *repo,
{ guint match_ratio = (matches->bufmatches*100)/matches->total; { 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. * the previous chunks.
*/ */
if (match_ratio < 25) if (match_ratio < 50)
{ {
ret = TRUE; ret = TRUE;
goto out; goto out;