All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.resources.jsp Maven / Gradle / Ivy

<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ include file="/init.jsp" %>

<%
String[] installedPatches = PatcherUtil.getInstalledPatches();

Date modifiedDate = PortalUtil.getUptime();

long uptimeDiff = System.currentTimeMillis() - modifiedDate.getTime();

long days = uptimeDiff / Time.DAY;
long hours = (uptimeDiff / Time.HOUR) % 24;
long minutes = (uptimeDiff / Time.MINUTE) % 60;
long seconds = (uptimeDiff / Time.SECOND) % 60;

Runtime runtime = Runtime.getRuntime();

long totalMemory = runtime.totalMemory();

long usedMemory = totalMemory - runtime.freeMemory();
%>


	
: <%= ReleaseInfo.getReleaseInfo() %> : <%= StringUtil.merge(installedPatches, StringPool.COMMA_AND_SPACE) %> : <%= days %> <%= LanguageUtil.get(request, ((days > 1) ? "days" : "day")) %>, <% NumberFormat timeNumberFormat = NumberFormat.getInstance(); timeNumberFormat.setMaximumIntegerDigits(2); timeNumberFormat.setMinimumIntegerDigits(2); %> <%= timeNumberFormat.format(hours) %>:<%= timeNumberFormat.format(minutes) %>:<%= timeNumberFormat.format(seconds) %>
<liferay-ui:message escapeAttribute=" key="memory-used-vs-total-memory" />" src="<%= totalMemoryChartURL %>" /> <liferay-ui:message escapeAttribute=" key="memory-used-vs-max-memory" />" src="<%= maxMemoryChartURL %>" />

<% NumberFormat basicNumberFormat = NumberFormat.getInstance(locale); %>

<%= basicNumberFormat.format(usedMemory) %>

<%= basicNumberFormat.format(runtime.totalMemory()) %>

<%= basicNumberFormat.format(runtime.maxMemory()) %>





© 2015 - 2025 Weber Informatics LLC | Privacy Policy