Bugfix: Correct blkmk_work_left for single-work templates that have been used

This commit is contained in:
Luke Dashjr 2016-08-11 03:49:35 +00:00
parent 26d76947f6
commit ebd42b2461

View File

@ -126,7 +126,6 @@ unsigned long blkmk_work_left(const blktemplate_t *tmpl) {
if (!tmpl->version)
return 0;
if (!(tmpl->mutations & (BMM_CBAPPEND | BMM_CBSET)))
return 1;
return (tmpl->next_dataid) ? 0 : 1;
return UINT_MAX - tmpl->next_dataid;
return BLKMK_UNLIMITED_WORK_COUNT;
}