- /admin: uptime item

- trying to fix certbot...
This commit is contained in:
Dan Janosik 2020-03-24 17:02:15 -04:00
parent a01957c47d
commit 624310a985
No known key found for this signature in database
GPG key ID: C6F8CE9FFDB2CED2
4 changed files with 16 additions and 0 deletions

2
app.js
View file

@ -359,6 +359,8 @@ function refreshNetworkVolumes() {
app.onStartup = function() {
global.appStartTime = new Date().getTime();
global.config = config;
global.coinConfig = coins[config.coin];
global.coinConfigs = coins;

View file

@ -0,0 +1 @@
certbot

View file

@ -1469,6 +1469,7 @@ router.get("/tools", function(req, res, next) {
});
router.get("/admin", function(req, res, next) {
res.locals.appStartTime = global.appStartTime;
res.locals.memstats = v8.getHeapStatistics();
res.locals.rpcStats = global.rpcStats;

View file

@ -15,6 +15,18 @@ block content
div.tab-content
div.tab-pane.active(id="tab-details", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h3.h6 Basics
hr
div.clearfix
div.row
div.summary-table-label Uptime
div.summary-table-content.text-monospace
- var uptime = moment.duration(new Date().getTime() - appStartTime);
span #{uptime.format()}
div.card.shadow-sm.mb-3
div.card-body
h3.h6 Memory Stats