diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index 2f78e743..e7fd7dc8 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -157,21 +157,7 @@ public function avx(): JSONResponse { } public function platform(): JSONResponse { - try { - exec('lscpu --json' . ' 2>&1', $output, $returnCode); - } catch (\Throwable $e) { - return new JSONResponse(['platform' => null]); - } - - if ($returnCode !== 0) { - return new JSONResponse(['platform' => null]); - } - - $lscpu = \json_decode(trim(implode("\n", $output)), true); - if (!isset($lscpu['lscpu'][0]['data'])) { - return new JSONResponse(['platform' => null]); - } - return new JSONResponse(['platform' => $lscpu['lscpu'][0]['data']]); + return new JSONResponse(['platform' => php_uname('m')]); } public function musl(): JSONResponse {