[java-identity-provider] branch main updated: Adjust status uptime output to match metric.
Scott Cantor
cantor.2 at osu.edu
Wed Dec 30 17:05:06 UTC 2020
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=af9743c91839c5d9af1c10635e3194e7c2e31154
The following commit(s) were added to refs/heads/main by this push:
new af9743c91 Adjust status uptime output to match metric.
af9743c91 is described below
commit af9743c91839c5d9af1c10635e3194e7c2e31154
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Dec 30 12:05:03 2020 -0500
Adjust status uptime output to match metric.
---
idp-war/src/main/webapp/WEB-INF/jsp/status.jsp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
index 5c6aa1152..055a93ad6 100644
--- a/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
+++ b/idp-war/src/main/webapp/WEB-INF/jsp/status.jsp
@@ -9,6 +9,7 @@
<%@ page import="java.util.Optional" %>
<%@ page import="java.util.ServiceLoader" %>
<%@ page import="java.util.ServiceLoader.Provider" %>
+<%@ page import="java.time.Duration" %>
<%@ page import="java.time.Instant" %>
<%@ page import="java.time.format.DateTimeFormatter" %>
<%@ page import="org.springframework.core.env.Environment" %>
@@ -44,9 +45,11 @@ maximum_memory: <%= Runtime.getRuntime().maxMemory() / 1048576 %> MB
idp_version: <%= Version.getVersion() %>
start_time: <%= dateTimeFormatter.format(startupTime) %>
current_time: <%= dateTimeFormatter.format(now) %>
-uptime: <%= now.toEpochMilli() - startupTime.toEpochMilli() %> ms
+uptime: <%= Duration.ofMillis(now.toEpochMilli() - startupTime.toEpochMilli()).toString() %>
<%
+out.println();
+out.println();
out.println("enabled modules: ");
final ModuleContext moduleContext =
new ModuleContext(((Environment) request.getAttribute("environment")).getProperty("idp.home"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list