JWS-121 Minor bug fix on the timeexec - wrong units.
authorFábio Madeira <fmmarquesmadeira@dundee.ac.uk>
Thu, 8 Jun 2017 16:43:38 +0000 (17:43 +0100)
committerFábio Madeira <fmmarquesmadeira@dundee.ac.uk>
Thu, 8 Jun 2017 16:43:38 +0000 (17:43 +0100)
webservices/compbio/stat/servlet/AnnualStat.java
webservices/compbio/stat/servlet/ServiceStatus.java

index bfa439c..b3124e4 100644 (file)
@@ -191,7 +191,7 @@ public class AnnualStat extends HttpServlet {
 \r
         req.setAttribute("stat", monthlyTotals);\r
         req.setAttribute("total", Totals.sumOfTotals(monthlyTotals));\r
-        req.setAttribute("timeexec", (endTime - startTime) / 100000000);\r
+        req.setAttribute("timeexec", (endTime - startTime) / 1000000000);\r
         req.setAttribute("timestamp", timeStamp);\r
         req.setAttribute("refreshfreq", refresh_freq);\r
         RequestDispatcher dispatcher = req.getRequestDispatcher("statpages/MonthlySummary.jsp");\r
index 8b29ded..2569a96 100644 (file)
@@ -291,7 +291,7 @@ public class ServiceStatus extends HttpServlet {
 \r
         req.setAttribute("results", testResults);\r
         req.setAttribute("timestamp", timeStamp);\r
-        req.setAttribute("timeexec", (endTime - startTime) / 100000000);\r
+        req.setAttribute("timeexec", (endTime - startTime) / 1000000000);\r
         req.setAttribute("refreshfreq", refresh_freq);\r
         RequestDispatcher rd = req.getRequestDispatcher("statpages/ServicesStatus.jsp");\r
         rd.forward(req, resp);\r