fix attributes
This commit is contained in:
+6
-6
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user