From 7a06c4f009175844cf5eeb59edfc47e847efa481 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 2 Mar 2016 09:55:05 +1100 Subject: [PATCH] Accept only old diffs until the diff change job id --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index ab8ecd0f..03358643 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5585,8 +5585,8 @@ out_submit: out_unlock: ck_runlock(&sdata->workbase_lock); - /* Accept the lower of new and old diffs until the next update */ - if (id < client->diff_change_job_id && client->old_diff < client->diff) + /* Accept shares of the old diff until the next update */ + if (id < client->diff_change_job_id) diff = client->old_diff; if (!invalid) { char wdiffsuffix[16];