$new["id"]

This commit is contained in:
devdatt 2026-01-19 16:31:09 +05:30
parent fd9e8d80df
commit 232a325ada
1 changed files with 2 additions and 2 deletions

View File

@ -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"];