提交 e91ddbba 编写于 作者: E egahlin

6417649: -interval=0 is accepted and jconsole doesn't update window content at all

Reviewed-by: alanb, jbachorik
上级 87a67478
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册