author | nloodin |
Mon, 03 Jun 2013 16:13:44 +0200 | |
changeset 17932 | d8056188ed21 |
parent 17931 | 765c1e9a498a |
child 17933 | b18cda672b79 |
jdk/src/share/classes/sun/tools/jconsole/SummaryTab.java | file | annotate | diff | comparison | revisions |
--- a/jdk/src/share/classes/sun/tools/jconsole/SummaryTab.java Mon Jun 03 10:45:11 2013 +0200 +++ b/jdk/src/share/classes/sun/tools/jconsole/SummaryTab.java Mon Jun 03 16:13:44 2013 +0200 @@ -360,6 +360,8 @@ 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,