[jboss-jira] [JBoss JIRA] (WFCORE-755) bootTimeout for embedded server uses milis instead of nanos
Bartosz Baranowski (JIRA)
issues at jboss.org
Fri Jul 10 05:57:03 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088422#comment-13088422 ]
Bartosz Baranowski commented on WFCORE-755:
-------------------------------------------
PR - bumped to miliseconds, I doubt we need nano resolution on this?
> bootTimeout for embedded server uses milis instead of nanos
> -----------------------------------------------------------
>
> Key: WFCORE-755
> URL: https://issues.jboss.org/browse/WFCORE-755
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.0.0.Alpha4
> Reporter: Petr Kremensky
> Assignee: Bartosz Baranowski
>
> Value for --timeout argument needs to be set in microseconds instead of seconds.
> {code:java}
> // boot time is transformed into milis
> Long bootTimeout = null;
> String timeoutString = timeout.getValue(parsedCmd);
> if (timeoutString != null) {
> bootTimeout = TimeUnit.SECONDS.toMillis(Long.parseLong(timeoutString));
> }
> ...
> // but expired is transformed into nanos
> long expired = bootTimeout == null ? Long.MAX_VALUE : System.nanoTime() + bootTimeout;
> {code}
> Could be fixed by converting parsed timeoutString into nanos.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list