You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jo...@apache.org on 2022/11/07 11:29:11 UTC
[sling-org-apache-sling-engine] 01/01: fix calculation
This is an automated email from the ASF dual-hosted git repository.
joerghoh pushed a commit to branch SLING-11618-fix-timing-2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
commit d72190424b51f4464312074c87a811cf4dc212f6
Author: Joerg Hoh <jo...@apache.org>
AuthorDate: Mon Nov 7 12:28:57 2022 +0100
fix calculation
---
src/main/java/org/apache/sling/engine/impl/filter/FilterHandle.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/engine/impl/filter/FilterHandle.java b/src/main/java/org/apache/sling/engine/impl/filter/FilterHandle.java
index 3e79e7d..629175f 100644
--- a/src/main/java/org/apache/sling/engine/impl/filter/FilterHandle.java
+++ b/src/main/java/org/apache/sling/engine/impl/filter/FilterHandle.java
@@ -94,7 +94,7 @@ public class FilterHandle implements Comparable<FilterHandle> {
* @return the average duration in microseconds
*/
public long getTimePerCall() {
- return (getCalls() > 0) ? (getTime() / getCalls()) : -1;
+ return (getCalls() > 0) ? (time.get() / getCalls()) : -1;
}
void track() {