metrics: parse int

This commit is contained in:
Girish Ramakrishnan
2025-05-21 18:22:57 +02:00
parent c0f0084e56
commit fcfc9572f1
+1 -1
View File
@@ -101,7 +101,7 @@ async function getMemoryMetrics() {
const memory = output.match(memoryRe);
if (!memory) throw new BoxError(BoxError.EXTERNAL_ERROR, 'Could not find memory used');
return { used: memory.groups.used };
return { used: parseInt(memory.groups.used, 10) };
}
async function getCpuMetrics() {