$new["id"]
This commit is contained in:
parent
fd9e8d80df
commit
232a325ada
|
|
@ -187,9 +187,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST" && $_POST["action"] === "add") {
|
||||||
$data[] = $new;
|
$data[] = $new;
|
||||||
file_put_contents($jsonFile, json_encode($data, JSON_PRETTY_PRINT));
|
file_put_contents($jsonFile, json_encode($data, JSON_PRETTY_PRINT));
|
||||||
|
|
||||||
$alloc = getServiceCore($id);
|
$alloc = getServiceCore($new["id"]);
|
||||||
if ($alloc === null) {
|
if ($alloc === null) {
|
||||||
$alloc = allocateCore($id);
|
$alloc = allocateCore($new["id"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$core = (int)$alloc["cpu"];
|
$core = (int)$alloc["cpu"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue