typo
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user