fix attributes

This commit is contained in:
2025-05-17 23:12:24 +02:00
parent 11ad7fb9af
commit a853842522
2 changed files with 17 additions and 16 deletions
+6 -6
View File
@@ -96,22 +96,22 @@
const cpuTd = document.createElement('td');
cpuTd.style.textAlign = 'center';
cpuTd.style.padding = '8px 4px';
cpuTd.textContent = item.cpu === 1 ? '↑' : '↓';
cpuTd.style.color = item.cpu === 1 ? 'red' : 'green';
cpuTd.textContent = item.cpu_overage === 1 ? '↑' : '↓';
cpuTd.style.color = item.cpu_overage === 1 ? 'red' : 'green';
// RAM
const ramTd = document.createElement('td');
ramTd.style.textAlign = 'center';
ramTd.style.padding = '8px 4px';
ramTd.textContent = item.ram === 1 ? '↑' : '↓';
ramTd.style.color = item.ram === 1 ? 'red' : 'green';
ramTd.textContent = item.ram_overage === 1 ? '↑' : '↓';
ramTd.style.color = item.ram_overage === 1 ? 'red' : 'green';
// DISK
const diskTd = document.createElement('td');
diskTd.style.textAlign = 'center';
diskTd.style.padding = '8px 4px';
diskTd.textContent = item.disk === 1 ? '↑' : '↓';
diskTd.style.color = item.disk === 1 ? 'red' : 'green';
diskTd.textContent = item.disk_overage === 1 ? '↑' : '↓';
diskTd.style.color = item.disk_overage === 1 ? 'red' : 'green';
// Timestamp
const tsTd = document.createElement('td');