@nxtedition/lib 20.1.0 → 20.1.1
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.
- package/app.js +2 -2
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -282,7 +282,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
282
282
|
|
|
283
283
|
process.send?.({ type: 'nxt:lag', id, currentLag })
|
|
284
284
|
|
|
285
|
-
let appLag = currentLag$.value
|
|
285
|
+
let appLag = currentLag$.value ?? 0
|
|
286
286
|
for (const lag of lagMap.values()) {
|
|
287
287
|
appLag = Math.max(appLag, lag ?? 0)
|
|
288
288
|
}
|
|
@@ -534,7 +534,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
534
534
|
id: 'app:toobusy_lag',
|
|
535
535
|
level: lag > 1e3 ? 50 : lag > toobusy.maxLAge ? 40 : 30,
|
|
536
536
|
code: 'NXT_LAG',
|
|
537
|
-
msg: `Lag: ${lag
|
|
537
|
+
msg: `Lag: ${lag?.toFixed(2) ?? '?'} ms`,
|
|
538
538
|
},
|
|
539
539
|
]),
|
|
540
540
|
) ?? rxjs.of([]),
|