6417649: -interval=0 is accepted and jconsole doesn't update window content at all
Reviewed-by: alanb, jbachorik
This commit is contained in:
parent
edd19c0f39
commit
422a4d5bc7
@ -858,6 +858,10 @@ public class JConsole extends JFrame
|
|||||||
try {
|
try {
|
||||||
updateInterval = Integer.parseInt(arg.substring(10)) *
|
updateInterval = Integer.parseInt(arg.substring(10)) *
|
||||||
1000;
|
1000;
|
||||||
|
if (updateInterval <= 0) {
|
||||||
|
usage();
|
||||||
|
return;
|
||||||
|
}
|
||||||
} catch (NumberFormatException ex) {
|
} catch (NumberFormatException ex) {
|
||||||
usage();
|
usage();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user