Slon/Http/AdminServer: Display free memory in /info/stats
This commit is contained in:
parent
06c8433616
commit
c726b7e206
2 changed files with 6 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
|||
const request = new Request("/info/stats");
|
||||
const response = await fetch(request);
|
||||
const stats = await response.json();
|
||||
let html = "<h4 class=\"title is-4\">Statistics</h4><div class=spacer></div><div>Uptime: " + formatTime(stats["uptime"]) + "</div>";
|
||||
let html = "<h4 class=\"title is-4\">Statistics</h4><div class=spacer></div><div>Uptime: " + formatTime(stats["uptime"]) + "<br/>Free memory: " + stats["free_memory"].toString() + " bytes<br/></div>";
|
||||
setContent(html);
|
||||
setActiveLink("stats");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue