From 32117a573b6139f540270c231921cbf1e3ecbdbf Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Fri, 27 Jul 2018 17:47:10 +0900 Subject: [PATCH] Fix bug --- src/daemons/server-stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts index d2c6e3229..750c00c0c 100644 --- a/src/daemons/server-stats.ts +++ b/src/daemons/server-stats.ts @@ -47,7 +47,7 @@ export default function() { async function cpuUsage() { try { const data = await sysUtils.currentLoad(); - return Math.floor(data.currentload); + return Math.floor(data.currentload / 100); } catch (error) { console.error(error); throw error;