From 232a325adabe675a01db420f4d0d0f8a8fbbb5a3 Mon Sep 17 00:00:00 2001 From: devdatt Date: Mon, 19 Jan 2026 16:31:09 +0530 Subject: [PATCH] $new["id"] --- html/input.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/input.php b/html/input.php index ae8eaa2..ad3386e 100644 --- a/html/input.php +++ b/html/input.php @@ -187,9 +187,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST" && $_POST["action"] === "add") { $data[] = $new; file_put_contents($jsonFile, json_encode($data, JSON_PRETTY_PRINT)); - $alloc = getServiceCore($id); + $alloc = getServiceCore($new["id"]); if ($alloc === null) { - $alloc = allocateCore($id); + $alloc = allocateCore($new["id"]); } $core = (int)$alloc["cpu"];