From 405cde52f0a943e93fba3f15de47e9c43965dc5c Mon Sep 17 00:00:00 2001 From: al_xipe <al_xipe@localhost> Date: Tue, 20 Mar 2007 20:40:00 +0000 Subject: [PATCH] 1. Round to the lower integer --- opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl b/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl index 1ad290e..ae803d2 100644 --- a/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl +++ b/opends/tests/functional-tests/shared/xsl/gen-alltests-report.xsl @@ -41,7 +41,7 @@ <xsl:variable name="fail-tests" select="count($testcase[@result='fail'])"/> <xsl:variable name="inconc-tests" select="count($testcase[@result='unknown'])"/> - <xsl:variable name="percent-tests" select="round(($pass-tests div $total-tests) * 100)"/> + <xsl:variable name="percent-tests" select="round((($pass-tests div $total-tests) * 100) - 0.5)"/> <!-- Shaded Line --> <xsl:element name="hr"> -- Gitblit v1.10.0