6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too

Reviewed-by: jfdenise
This commit is contained in:
Luis Miguel Alventosa 2008-06-13 10:45:51 +02:00
parent 0c259336ec
commit 0557c0b500

View File

@ -157,7 +157,7 @@ public class XPlottingViewer extends PlotterPanel implements ActionListener {
public void run() {
try {
Number n =
(Number) xmbean.getMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName);
(Number) xmbean.getSnapshotMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName);
long v;
if (n instanceof Float || n instanceof Double) {
plotter.setDecimals(PLOTTER_DECIMALS);