final public void decRequests ( long execTime , String url ) { long lst = 0 ; if ( responseTime != null && execTime >= 0 ) { lst = System . currentTimeMillis ( ) ; responseTime . add ( lst , execTime ) ; } if ( currentRequests != null ) { // Servlet/JSP concurrent request RangeStatistic is NOT synchronized // until synchronizedUpdate = true if ( lst <= 0 ) lst = System . currentTimeMillis ( ) ; currentRequests . decrement ( lst , 1 ) ; } // PK64697 Only collect url stats if they are enabled or if the custom property which requires // them UrlPmiModule objects to be created irrespective of whether or not url stats are enabled. //if (collectUrlStats()) { // PK64297 false parameter on getUrlMod indicates not to create a new UrlPMiModule object // just to record the end of a request. i.e.: url stats were enabled whilst the request was // in progress. /* UrlPmiModule urlMod = getUrlMod(url,false); if (urlMod!=null){ if (lst <= 0) lst = System.currentTimeMillis(); urlMod.decRequests (execTime,lst); }*/ //} }
use tmp var to avoid possible problem due to multithreads