function update_controls() { $sysinfo = system_get_sysinfo(); $cpus = system_get_cpus(); $sysinfo['cpus'] = $cpus; if ($cpus > 1) { $sysinfo['cpuusage2'] = system_get_smp_cpu_usage(); $sysinfo['cpuusage'] = floor(array_sum($sysinfo['cpuusage2']) / $cpus); } else { $sysinfo['cpuusage2'] = array($sysinfo['cpuusage']); } return json_encode($sysinfo); }
"><span><?php echo gettext("CPU load"); ?> </span></a></li> </ul> </td> </tr> <td class="tabcont"> <?php echo gettext("Graph shows last 120 seconds"); ?> <div align="center" style="min-width:840px;"> <br /> <?php session_start(); $cpus = system_get_cpus(); if ($cpus > 1) { for ($j = 0; $j < $cpus; $j++) { echo '<object id="graph" data="graph_cpu.php?cpu=' . $j . '" type="image/svg+xml" width="' . $graph_width . '" height="' . $graph_height . '">'; echo '<param name="src" value="graph_cpu.php?cpu=' . $j . '" />'; echo 'Your browser does not support this object type! You need to either use Firefox, Internet Explorer 9 and higher or download RENESIS Player<br /><span class="red"><strong>Note:</strong></span> The <a href="http://de.brothersoft.com/Renesis-Player-download-141155.html" target="_blank">RENESIS Player</a> is required to view the graph.<br></br>'; echo '</object>'; $test = $j % 2; if ($test != 0) { echo '<br /><br /><br />'; } else { echo $graph_gap; } /* or the gap between two graphs */ } }