summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/session.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r--web/share/js/kvm/session.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js
index 8b89b71c..a183b33e 100644
--- a/web/share/js/kvm/session.js
+++ b/web/share/js/kvm/session.js
@@ -132,7 +132,7 @@ export function Session() {
if (__info_hw_state !== null) {
html += `
Platform:
- ${__formatPlatform(__info_hw_state.platform)}
+ ${__formatMisc(__info_hw_state)}
<hr>
Temperature:
${__formatTemp(__info_hw_state.health.temp)}
@@ -153,8 +153,13 @@ export function Session() {
$("about-hardware").innerHTML = html;
};
- var __formatPlatform = function(state) {
- return __formatUl([["Base", state.base], ["Serial", state.serial]]);
+ var __formatMisc = function(state) {
+ return __formatUl([
+ ["Base", state.platform.base],
+ ["Serial", state.platform.serial],
+ ["CPU", `${state.health.cpu.percent}%`],
+ ["MEM", `${state.health.mem.percent}%`],
+ ]);
};
var __formatFan = function(state) {