mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
- /admin: uptime item
- trying to fix certbot...
This commit is contained in:
parent
a01957c47d
commit
624310a985
4 changed files with 16 additions and 0 deletions
2
app.js
2
app.js
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
certbot
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue