From fb98050153575a17988e847f7d3228547d04151c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fa=CC=81bio=20Madeira?= Date: Thu, 8 Jun 2017 17:43:38 +0100 Subject: [PATCH] JWS-121 Minor bug fix on the timeexec - wrong units. --- webservices/compbio/stat/servlet/AnnualStat.java | 2 +- webservices/compbio/stat/servlet/ServiceStatus.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webservices/compbio/stat/servlet/AnnualStat.java b/webservices/compbio/stat/servlet/AnnualStat.java index bfa439c..b3124e4 100644 --- a/webservices/compbio/stat/servlet/AnnualStat.java +++ b/webservices/compbio/stat/servlet/AnnualStat.java @@ -191,7 +191,7 @@ public class AnnualStat extends HttpServlet { req.setAttribute("stat", monthlyTotals); req.setAttribute("total", Totals.sumOfTotals(monthlyTotals)); - req.setAttribute("timeexec", (endTime - startTime) / 100000000); + req.setAttribute("timeexec", (endTime - startTime) / 1000000000); req.setAttribute("timestamp", timeStamp); req.setAttribute("refreshfreq", refresh_freq); RequestDispatcher dispatcher = req.getRequestDispatcher("statpages/MonthlySummary.jsp"); diff --git a/webservices/compbio/stat/servlet/ServiceStatus.java b/webservices/compbio/stat/servlet/ServiceStatus.java index 8b29ded..2569a96 100644 --- a/webservices/compbio/stat/servlet/ServiceStatus.java +++ b/webservices/compbio/stat/servlet/ServiceStatus.java @@ -291,7 +291,7 @@ public class ServiceStatus extends HttpServlet { req.setAttribute("results", testResults); req.setAttribute("timestamp", timeStamp); - req.setAttribute("timeexec", (endTime - startTime) / 100000000); + req.setAttribute("timeexec", (endTime - startTime) / 1000000000); req.setAttribute("refreshfreq", refresh_freq); RequestDispatcher rd = req.getRequestDispatcher("statpages/ServicesStatus.jsp"); rd.forward(req, resp); -- 1.7.10.2