diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/schedule.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/schedule.js b/tools/schedule.js index 6173e94..caad554 100644 --- a/tools/schedule.js +++ b/tools/schedule.js @@ -98,7 +98,7 @@ exports.Queue = function(delayms, maxExport, call){ let data = job.data; let topop = job.wacc-job.wacc%1; job.wacc -= topop - dequeued.push(...data.splice(-topop)); + dequeued.push(...data.splice(data.length-topop)); } // Step 4: Shallow copy job array, and sort by job.wacc. |