monitoring: fix memory legend overflow, sort by consumption (v0.30.7)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 4.6 committed 2026-02-25 16:22:29 +01:00
1 parent 19f2c908fc
commit d3b53d9877
3 files changed
+14 -1

No files matched your search

@@ -551,6 +551,9 @@
header.textContent = 'Használt: ' + fmtMB(usedMB) + ' / ' + fmtMB(totalMB) + ' (' + Math.round(usedMB/totalMB*100) + '%)';
// Sort containers by memory usage descending
containers.sort(function(a, b) { return (b.mem_usage_mb || 0) - (a.mem_usage_mb || 0); });
// Build bar segments
var html = '';
var legendHtml = '';