Commits

Zemian Deng  committed dee05d7

Use formatDurationISO for webappUptime on /health page.

  • Participants
  • Parent commits 3733023

Comments (0)

Files changed (1)

File timemachine-web/src/main/java/timemachine/scheduler/web/HealthServlet.java

 	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
 	{
 		long startTime = ((Date)getServletContext().getAttribute("webappStartTime")).getTime();
-		String webappUpTime = DurationFormatUtils.formatDurationHMS(System.currentTimeMillis() - startTime); 
+		String webappUpTime = DurationFormatUtils.formatDurationISO(System.currentTimeMillis() - startTime); 
 		logger.trace("Getting health info.");
 		req.setAttribute("serverInfo", getServletContext().getServerInfo());
 		req.setAttribute("serverTime", new Date().getTime());