typo
This commit is contained in:
+1
-1
@@ -305,7 +305,7 @@ async function getSystemStream(options) {
|
||||
|
||||
intervalId = setInterval(async () => {
|
||||
const [memoryResult, cpuResult] = await Promise.allSettled([ readMemoryMetrics(), readCpuMetrics() ]); // never throws
|
||||
if (memoryResult.status !== 'fulfilled' || cpuMetrics.status !== 'fulfilled') return metricsStream.destroy(memoryResult.reason || cpuMetrics.reason);
|
||||
if (memoryResult.status !== 'fulfilled' || cpuResult.status !== 'fulfilled') return metricsStream.destroy(memoryResult.reason || cpuResult.reason);
|
||||
|
||||
const memoryMetrics = memoryResult.value;
|
||||
const cpuMetrics = cpuResult.value;
|
||||
|
||||
+1
-1
@@ -350,7 +350,7 @@ async function checkForUpdates(options) {
|
||||
// check app updates
|
||||
const result = await apps.list();
|
||||
for (const app of result) {
|
||||
await safe(checkAppUpdate(app), { debug });
|
||||
await safe(checkAppUpdate(app, options), { debug });
|
||||
}
|
||||
|
||||
// raise notifications here because the updatechecker runs regardless of auto-updater cron job
|
||||
|
||||
Reference in New Issue
Block a user