diff --git a/Plugin/unraid/pages/monitor.php b/Plugin/unraid/pages/monitor.php index 7e5d29e..add9a31 100644 --- a/Plugin/unraid/pages/monitor.php +++ b/Plugin/unraid/pages/monitor.php @@ -1335,19 +1335,17 @@ function vvPollMonitor() { ${meth} `; } - const shown = activeSessions.slice(0, 4); - const mid = Math.ceil(shown.length / 2); - const colA = shown.slice(0, mid).map(vvTcRow).join(''); - const colB = shown.slice(mid).map(vvTcRow).join(''); + const mid = Math.ceil(activeSessions.length / 2); + const colA = activeSessions.slice(0, mid).map(vvTcRow).join(''); + const colB = activeSessions.slice(mid).map(vvTcRow).join(''); const colBDiv = colB ? `
${colB}
` : ''; - const overflow = activeSessions.length > 4 - ? `
+${activeSessions.length - 4} more
` - : ''; sessHtml = `
Active transcodes ${activeSessions.length}
-
-
${colA}
${colBDiv} -
${overflow} +
+
+
${colA}
${colBDiv} +
+
`; }