Fix a dumb I did.

This commit is contained in:
NovaFox161
2018-09-14 14:41:33 -05:00
parent 463b46afe9
commit 6f08a67654
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ public class NetworkInfo {
return DatabaseManager.getManager().getAnnouncementCount();
}
private static String humanReadableUptime() {
public String getUptime() {
RuntimeMXBean mxBean = ManagementFactory.getRuntimeMXBean();
Interval interval = new Interval(mxBean.getStartTime(), System.currentTimeMillis());
Period period = interval.toPeriod();

View File

@@ -63,7 +63,7 @@
<h2>Server</h2>
<p th:text="'Connected Clients: ' + ${status.clientCount}"></p>
<p th:text="'Uptime: ' + ${status.humanReadableUptime}"></p>
<p th:text="'Uptime: ' + ${status.uptime}"></p>
<p th:text="'Total Guilds: ' + ${status.totalGuildCount}"></p>
<p th:text="'Total Calendars: ' + ${status.calendarCount}"></p>
<p th:text="'Total Announcements: ' + ${status.announcementCount}"></p>