Bugfix: Correct blkmk_work_left for single-work templates that have been used
This commit is contained in:
parent
26d76947f6
commit
ebd42b2461
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user