1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

reload if it lags

This commit is contained in:
Ashley //// 2024-02-11 10:36:33 +00:00
parent 5f0bbfbb50
commit 1213b99c83

View file

@ -101,6 +101,7 @@ toobusy.maxLag(3500);
});
toobusy.onLag(function(currentLag) {
process.exit(1);
console.log("Event loop lag detected! Latency: " + currentLag + "ms");
});