Sort process tree by numeric PID, not by PID string
This commit is contained in:
parent
e9697c8171
commit
a62f00b8a3
|
@ -348,7 +348,7 @@ World.prototype.processTree = function () {
|
||||||
for (var pid in this.tombstones) {
|
for (var pid in this.tombstones) {
|
||||||
kids.push([pid, this.tombstones[pid]]);
|
kids.push([pid, this.tombstones[pid]]);
|
||||||
}
|
}
|
||||||
kids.sort();
|
kids.sort(function (a, b) { return a[0] - b[0] });
|
||||||
return kids;
|
return kids;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue