mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue