From b16b9c50902ccf8b4d79a1054fb56417e4e95d2f Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Mon, 24 Sep 2018 01:51:35 +1000 Subject: [PATCH] fix: Fixes #43 so CPU use not 100x higher than it should be (#44) --- packages/frontend/src/components/Node/Row.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/Node/Row.tsx b/packages/frontend/src/components/Node/Row.tsx index 8ff18c3..2fba616 100644 --- a/packages/frontend/src/components/Node/Row.tsx +++ b/packages/frontend/src/components/Node/Row.tsx @@ -89,7 +89,7 @@ export default class Row extends React.Component { render: ({ nodeStats }) => { const cpu = nodeStats[3]; - return cpu ? `${(cpu * 100).toFixed(1)}%` : '-'; + return cpu ? `${cpu.toFixed(1)}%` : '-'; } }, {