6672135: setInterval() for local MonitoredHost and local MonitoredVm does not work
Summary: super.setInterval() invoked with correct value
Reviewed-by: swamyv
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/LocalMonitoredVm.java Thu Jul 24 14:03:16 2008 -0700
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/LocalMonitoredVm.java Fri Jul 25 12:40:22 2008 +0200
@@ -124,7 +124,7 @@
}
int oldInterval = interval;
- super.setInterval(interval);
+ super.setInterval(newInterval);
if (task != null) {
task.cancel();
--- a/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/MonitoredHostProvider.java Thu Jul 24 14:03:16 2008 -0700
+++ b/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/MonitoredHostProvider.java Fri Jul 25 12:40:22 2008 +0200
@@ -130,7 +130,7 @@
}
int oldInterval = interval;
- super.setInterval(interval);
+ super.setInterval(newInterval);
if (task != null) {
task.cancel();