git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 5af73bf78401dd01823ff419a8214d9c73ed810d

leastNumberOfTicks should return Inf if no processes

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 11/26/2017, 8:06:03 PM
Parent: 8219bd66a439d14f4728e4a0195f4c017c42ab90

Files changed

scheduler.jschanged
scheduler.jsView
@@ -87,9 +87,9 @@
8787 * returns the oldest container's ticks
8888 * @return {integer}
8989 */
9090 leastNumberOfTicks (exclude) {
91- let ticks = 0
91+ let ticks = Infinity
9292 for (const instance of this.instances) {
9393 ticks = instance[1].ticks
9494 if (instance[1].id !== exclude) {
9595 return ticks

Built with git-ssb-web