From 472dc21df70d23508084cb89c8e98a9b1a428b36 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 8 Sep 2018 09:00:06 -0400 Subject: [PATCH 1/5] CPU Isolation: Prevent PHP error if no CPUs isolated --- plugins/dynamix/include/CPUset.php | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/dynamix/include/CPUset.php b/plugins/dynamix/include/CPUset.php index 72851998d..bb8a92278 100644 --- a/plugins/dynamix/include/CPUset.php +++ b/plugins/dynamix/include/CPUset.php @@ -91,7 +91,6 @@ case 'is': $syslinux = file('/boot/syslinux/syslinux.cfg',FILE_IGNORE_NEW_LINES+FILE_SKIP_EMPTY_LINES); $size = count($syslinux); $menu = $i = 0; - $isolcpus = $isol = []; // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) { From fd78d155924bbf7613f1ca8f851a4d525291b392 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 8 Sep 2018 16:01:07 -0400 Subject: [PATCH 2/5] Update CPUset.php --- plugins/dynamix/include/CPUset.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/dynamix/include/CPUset.php b/plugins/dynamix/include/CPUset.php index bb8a92278..4273866bb 100644 --- a/plugins/dynamix/include/CPUset.php +++ b/plugins/dynamix/include/CPUset.php @@ -91,6 +91,8 @@ case 'is': $syslinux = file('/boot/syslinux/syslinux.cfg',FILE_IGNORE_NEW_LINES+FILE_SKIP_EMPTY_LINES); $size = count($syslinux); $menu = $i = 0; + $isolcpus = $isol = ""; + // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) { From 6c1319566375e7ee9dddafc4ce1ef14fe2b1f016 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 8 Sep 2018 16:03:14 -0400 Subject: [PATCH 3/5] Update CPUset.php --- plugins/dynamix/include/CPUset.php | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/dynamix/include/CPUset.php b/plugins/dynamix/include/CPUset.php index 4273866bb..ca18a5fd8 100644 --- a/plugins/dynamix/include/CPUset.php +++ b/plugins/dynamix/include/CPUset.php @@ -92,7 +92,6 @@ case 'is': $size = count($syslinux); $menu = $i = 0; $isolcpus = $isol = ""; - // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) { From e4515bdf381a5c7c8fc1be21d9445f0a3ddd37b8 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 8 Sep 2018 16:04:27 -0400 Subject: [PATCH 4/5] Update CPUset.php --- plugins/dynamix/include/CPUset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/CPUset.php b/plugins/dynamix/include/CPUset.php index ca18a5fd8..ef3a1f286 100644 --- a/plugins/dynamix/include/CPUset.php +++ b/plugins/dynamix/include/CPUset.php @@ -91,7 +91,7 @@ case 'is': $syslinux = file('/boot/syslinux/syslinux.cfg',FILE_IGNORE_NEW_LINES+FILE_SKIP_EMPTY_LINES); $size = count($syslinux); $menu = $i = 0; - $isolcpus = $isol = ""; + $isol = ""; // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) { From 997407df2cbc56370013608a4762130231846888 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 8 Sep 2018 16:11:37 -0400 Subject: [PATCH 5/5] Dutchify --- plugins/dynamix/include/CPUset.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dynamix/include/CPUset.php b/plugins/dynamix/include/CPUset.php index ef3a1f286..aea7a7e0d 100644 --- a/plugins/dynamix/include/CPUset.php +++ b/plugins/dynamix/include/CPUset.php @@ -92,6 +92,7 @@ case 'is': $size = count($syslinux); $menu = $i = 0; $isol = ""; + $isolcpus = []; // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) {