From 9d508a9abc17e0130744a4203afc44e2b53ffd7d Mon Sep 17 00:00:00 2001 From: realies Date: Sun, 7 Oct 2018 19:45:52 +0100 Subject: [PATCH] Add global CPU core pinning for containers Should make possible to (re)allocate CPU resources across all containers faster. Currently, it requires manual clicking on thread numbers per container individually, which in a large pool of containers can be very repetitive. The change allows for thread numbers to be clickable, doing so enables or disables thread pinning across all containers. --- plugins/dynamix/CPUvms.page | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/dynamix/CPUvms.page b/plugins/dynamix/CPUvms.page index 67a9c178e..3a4b63ea2 100644 --- a/plugins/dynamix/CPUvms.page +++ b/plugins/dynamix/CPUvms.page @@ -126,6 +126,10 @@ function ct() { $('#table-ct').html(data[0]); $('#names-ct').val(data[1]); buttons(document.ct); + // inject global cpu pinning links + $('form[name=ct]').find('thead tr th:gt(1)').each((i, elem) => { + elem.innerHTML = elem.innerHTML.replace(/(\d+)/g, `$1`); + }); }); } function is() {