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:10 UTC

[sling-org-apache-sling-engine] branch SLING-11618-fix-timing-2 created (now d721904)

This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a change to branch SLING-11618-fix-timing-2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git


      at d721904  fix calculation

This branch includes the following new commits:

     new d721904  fix calculation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-org-apache-sling-engine] 01/01: fix calculation

Posted by jo...@apache.org.
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() {