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 {
|
||||
updateInterval = Integer.parseInt(arg.substring(10)) *
|
||||
1000;
|
||||
if (updateInterval <= 0) {
|
||||
usage();
|
||||
return;
|
||||
}
|
||||
} catch (NumberFormatException ex) {
|
||||
usage();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user