提交 727ade96 编写于 作者: N nloodin

6526682: JConsole shows negative CPU Usage

Reviewed-by: alanb, mchung
上级 4943d6c2
......@@ -360,6 +360,8 @@ class SummaryTab extends Tab {
Math.min(99F,
elapsedCpu / (elapsedTime * 10000F * result.nCPUs));
cpuUsage = Math.max(0F, cpuUsage);
getPlotter().addValues(result.timeStamp,
Math.round(cpuUsage * Math.pow(10.0, CPU_DECIMALS)));
getInfoLabel().setText(Resources.format(Messages.CPU_USAGE_FORMAT,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册