metrics: parse int
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user