diff options
author | Simon Rettberg | 2020-04-27 12:59:12 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-27 12:59:12 +0200 |
commit | c7762bc6e87419ba8c71d7b431607393d2370e5c (patch) | |
tree | 45f49398ea3baec87cef11bdf9c7df10cf698fa7 /modules-available/statistics/install.inc.php | |
parent | Fix typo in last commit (diff) | |
download | slx-admin-c7762bc6e87419ba8c71d7b431607393d2370e5c.tar.gz slx-admin-c7762bc6e87419ba8c71d7b431607393d2370e5c.tar.xz slx-admin-c7762bc6e87419ba8c71d7b431607393d2370e5c.zip |
[statistics] Track CPU temperature as well
Diffstat (limited to 'modules-available/statistics/install.inc.php')
-rw-r--r-- | modules-available/statistics/install.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/install.inc.php b/modules-available/statistics/install.inc.php index 1fb70aef..fed9b318 100644 --- a/modules-available/statistics/install.inc.php +++ b/modules-available/statistics/install.inc.php @@ -277,8 +277,10 @@ $res[] = tableAddConstraint('setting_machine', 'machineuuid', 'machine', 'machin if (!tableHasColumn('machine', 'live_cpuload')) { $ret = Database::exec("ALTER TABLE `machine` ADD COLUMN `live_cpuload` tinyint(3) UNSIGNED NOT NULL DEFAULT '255' AFTER `live_memfree`, + ADD COLUMN `live_cputemp` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `live_cpuload`, ADD COLUMN `standbysem` tinyint(3) UNSIGNED NOT NULL DEFAULT '0', - ADD INDEX `live_cpuload` (`live_cpuload`)"); + ADD INDEX `live_cpuload` (`live_cpuload`), + ADD INDEX `live_cputemp` (`live_cputemp`)"); if ($ret === false) { finalResponse(UPDATE_FAILED, 'Adding live_cpuload column to machine table failed: ' . Database::lastError()); } |