diff options
author | Simon Rettberg | 2021-11-26 12:15:36 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | 0e1038958eb2c1c0fd51a6291cfdf4222d0870a1 (patch) | |
tree | 7b7032aa9193a0642c38e4a92462f871891ecfbc /modules-available | |
parent | [statistics] Add lookup table for GPT type UUIDs (diff) | |
download | slx-admin-0e1038958eb2c1c0fd51a6291cfdf4222d0870a1.tar.gz slx-admin-0e1038958eb2c1c0fd51a6291cfdf4222d0870a1.tar.xz slx-admin-0e1038958eb2c1c0fd51a6291cfdf4222d0870a1.zip |
[statistics] Remove debug spam
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/statistics/inc/hardwareparser.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/inc/hardwareparser.inc.php b/modules-available/statistics/inc/hardwareparser.inc.php index 0217835e..8f55493d 100644 --- a/modules-available/statistics/inc/hardwareparser.inc.php +++ b/modules-available/statistics/inc/hardwareparser.inc.php @@ -19,7 +19,7 @@ class HardwareParser public static function convertSize(string $string, string $scale = 'a', bool $appendUnit = true) { if (!preg_match('/(\d+)\s*([TGMK]?)/i', $string, $out)) { - error_log("Not size: $string"); + //error_log("Not size: $string"); return false; } $val = (int)$out[1] * self::LOOKUP[strtoupper($out[2])]; @@ -217,7 +217,7 @@ class HardwareParser */ private static function markDisconnected(string $uuid, string $dbType, array $excludedHwIds) { - error_log("Marking disconnected for $dbType except " . implode(', ', $excludedHwIds)); + //error_log("Marking disconnected for $dbType except " . implode(', ', $excludedHwIds)); if (empty($excludedHwIds)) { Database::exec("UPDATE machine_x_hw mxh, statistic_hw h SET mxh.disconnecttime = UNIX_TIMESTAMP() |