@nxtedition/lib 19.8.17 → 19.8.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.js +2 -2
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -232,13 +232,13 @@ export function makeApp(appConfig, onTerminate) {
232
232
  setInterval(() => {
233
233
  currentLag = Math.max(0, histogram.mean / 1e6 - resolution)
234
234
  if (Number.isNaN(currentLag)) {
235
- currentLag = Infinity
235
+ currentLag = null
236
236
  }
237
237
  histogram.reset()
238
238
 
239
239
  if (currentLag > 1e3) {
240
240
  logger?.error({ currentLag }, 'lag')
241
- } else {
241
+ } else if (currentLag > maxLag) {
242
242
  logger?.warn({ currentLag }, 'lag')
243
243
  }
244
244
  }, interval).unref()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.8.17",
3
+ "version": "19.8.18",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",