Fix JavaScript syntax error caused by duplicate ram variable declaration in app.js
This commit is contained in:
@@ -136,7 +136,6 @@ function updateDashboard(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 2. System RAM & Page Cache
|
// 2. System RAM & Page Cache
|
||||||
const ram = data.ram || {};
|
|
||||||
if (ram.total_bytes) {
|
if (ram.total_bytes) {
|
||||||
document.getElementById('ram-cached-gb').textContent = ram.cached_gb || '0.0';
|
document.getElementById('ram-cached-gb').textContent = ram.cached_gb || '0.0';
|
||||||
document.getElementById('ram-total-text').textContent = `${ram.total_gb || 0} GB Total (${ram.cache_ratio_pct || 0}% in Cache)`;
|
document.getElementById('ram-total-text').textContent = `${ram.total_gb || 0} GB Total (${ram.cache_ratio_pct || 0}% in Cache)`;
|
||||||
|
|||||||
Reference in New Issue
Block a user