Permalink
Browse files

Fix division by zero issue.

  • Loading branch information...
1 parent 78d6ab2 commit 6743380197ac3a8c6e8ae7e00aeb07270a5520c0 @wolfgangmm wolfgangmm committed Sep 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/src/org/exist/xmldb/concurrent/action/XQueryAction.java
@@ -86,6 +86,6 @@ public String getQuery() {
}
public long avgExecTime() {
- return runningTime / called;
+ return called == 0 ? 0 : runningTime / called;
}
}

0 comments on commit 6743380

Please sign in to comment.