src/api2/node/tasks.rs: correctly handle start parameter
This commit is contained in:
parent
063ca5be77
commit
3c3bee2e32
|
@ -44,7 +44,7 @@ fn list_tasks(
|
||||||
entry["status"] = Value::from(state.1.clone());
|
entry["status"] = Value::from(state.1.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count as u64) <= start {
|
if (count as u64) < start {
|
||||||
count += 1;
|
count += 1;
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue