You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/10/04 22:52:44 UTC
[jira] [Updated] (HTTPCLIENT-1413) Divide by Zero error in
FutureRequestExecutionMetrics
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCLIENT-1413:
------------------------------------------
Priority: Minor (was: Critical)
> Divide by Zero error in FutureRequestExecutionMetrics
> -----------------------------------------------------
>
> Key: HTTPCLIENT-1413
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1413
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 4.3 Final
> Reporter: Shreyas Dube
> Priority: Minor
>
> There is a divide by zero error in the org.apache.http.impl.client.FutureRequestExecutionMetrics.DurationCounter::averageDuration() method.
> {code}
> public long averageDuration() {
> final long counter = count.get();
> return cumulativeDuration.get() / counter; // / by 0 if counter is 0
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org