diff --git a/web/maintenance/style.css b/web/maintenance/style.css index 4807362a50..4cfe0ccdf1 100644 --- a/web/maintenance/style.css +++ b/web/maintenance/style.css @@ -33,8 +33,8 @@ h1 { margin-bottom: 12px; } .card table { - width: 100%; /* wieder volle Kartenbreite */ - max-width: 100%; /* wieder volle Kartenbreite */ + width: 100%; /* wieder volle Kartenbreite */ + max-width: 100%; /* wieder volle Kartenbreite */ } table { border-collapse: collapse; @@ -66,3 +66,57 @@ th { align-items: center; margin-right: 30px; } + +/* Modal Overlay */ +.details-modal { + display: none; + position: fixed; + left: 0; + top: 0; + width: 100vw; + height: 100vh; + background: rgba(0, 0, 0, 0.4); + align-items: center; + justify-content: center; + z-index: 10000; +} + +/* Modal Inhalt */ +.details-modal-content { + background: #fff; + padding: 24px 32px; + border-radius: 8px; + max-width: 90vw; + max-height: 80vh; + box-shadow: 0 2px 16px #0003; + position: relative; + display: flex; + flex-direction: column; +} + +/* Modal Nachricht */ +#details-modal-message { + white-space: pre-wrap; + margin-bottom: 20px; +} + +/* Modal Schließen-Button */ +#details-modal-close { + align-self: flex-end; + padding: 6px 18px; + font-size: 1em; +} + +/* Info-Button */ +.details-button { + font-size: 0.8em; + padding: 0 4px; + margin-left: 6px; + border-radius: 50%; +} + +/* Modal Header */ +#details-modal-header { + margin-top: 0; + margin-bottom: 16px; +} diff --git a/web/maintenance/systeminfo.html b/web/maintenance/systeminfo.html index 37a30c215a..77ddd1f258 100644 --- a/web/maintenance/systeminfo.html +++ b/web/maintenance/systeminfo.html @@ -11,6 +11,13 @@

Systeminformationen

Lade Daten...

+
+
+

Details

+

+				
+			
+
diff --git a/web/maintenance/systeminfo_api.php b/web/maintenance/systeminfo_api.php index 50b44b0802..5c1183bb97 100644 --- a/web/maintenance/systeminfo_api.php +++ b/web/maintenance/systeminfo_api.php @@ -315,7 +315,7 @@ function getServiceStatus($services) function getTopProcesses($order, $limit) { // ps gibt: PID, Benutzer, CPU-Auslastung, Speicher, Befehl - $data = ['comm', 'pid', '%cpu', '%mem']; + $data = ['comm', 'pid', '%cpu', '%mem', 'command']; $index = array_search($order, $data); if ($index === false) { return []; @@ -329,10 +329,11 @@ function getTopProcesses($order, $limit) for ($i = 1; $i < count($output); $i++) { // Spalten trennen (mehrere Leerzeichen) $cols = preg_split('/\s+/', trim($output[$i]), 5); - if (count($cols) === 4) { + if (count($cols) === 5) { $result[$cols[0] . ' (' . $cols[1] . ')'] = [ 'value' => (float)$cols[$index], - 'unit' => '%' + 'unit' => '%', + 'details' => $cols[4] ]; } }