Commit 1cfa89100b6932dc2f692d9f806822895ada81ad
only update the scheduler on changes
wanderer committed on 7/5/2017, 9:51:56 PMParent: 7dc277be0c3a95ca7e090f1768ddf2c8990e785f
Files changed
kernel.js | changed |
kernel.js | ||
---|---|---|
@@ -60,10 +60,10 @@ | ||
60 | 60 | // if the message we recived had more ticks then we currently have the |
61 | 61 | // update it |
62 | 62 | if (message._fromTicks > this.ticks) { |
63 | 63 | this.ticks = message._fromTicks |
64 | + this.hypervisor.scheduler.update(this) | |
64 | 65 | } |
65 | - this.hypervisor.scheduler.update(this) | |
66 | 66 | // run the next message |
67 | 67 | this.run(message) |
68 | 68 | } |
69 | 69 | } |
@@ -104,9 +104,8 @@ | ||
104 | 104 | } |
105 | 105 | |
106 | 106 | this.ports.clearUnboundedPorts() |
107 | 107 | this._runNextMessage() |
108 | - return result | |
109 | 108 | } |
110 | 109 | |
111 | 110 | getResponsePort (message) { |
112 | 111 | if (message.responsePort) { |
Built with git-ssb-web