mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
fix: server_stats column names + remove hardcoded spamassassin unknown
system.php: INSERT used wrong column names (cpu_pct/ram_pct/disk_pct/ load_1m) — table has cpu_usage/ram_usage/disk_usage/load_avg matching migration 007. Fatal PDOException was crashing stats API → all services showing as unknown. admin.js mailServer(): remove spamassassin row (not installed, was permanently hardcoded to 'unknown'). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -311,8 +311,8 @@ match ($action) {
|
||||
|
||||
// Persist to DB for history
|
||||
$db->execute(
|
||||
"INSERT INTO server_stats (cpu_pct,ram_pct,disk_pct,load_1m,load_5m,load_15m) VALUES (?,?,?,?,?,?)",
|
||||
[$cpuPct, $ramPct, $diskPct, $load[0], $load[1], $load[2]]
|
||||
"INSERT INTO server_stats (cpu_usage,ram_usage,disk_usage,load_avg) VALUES (?,?,?,?)",
|
||||
[$cpuPct, $ramPct, $diskPct, $load[0]]
|
||||
);
|
||||
|
||||
Response::success([
|
||||
|
||||
Reference in New Issue
Block a user