Fix single line display of non-hyperthreaded cores on Dashboard page

This commit is contained in:
bergware
2016-03-27 10:17:49 +02:00
parent 687615e1a2
commit f8088c93fc

View File

@@ -159,7 +159,7 @@ $tr = false;
foreach ($cores as $pair):
list($core1, $core2) = explode(',',$pair);
if ($tr) echo "<tr>";
if ($core2>=0)
if (isset($core2))
echo "<td>core $core1 / $core2</td><td class='blue' id='cpu{$core1}'>"."</td><td class='blue' id='cpu{$core2}'></td>";
else
echo "<td>core $core1</td><td colspan='2' class='blue' id='cpu{$core1}'>";