function get_stats() { $stats['cpu'] = cpu_usage(); $stats['mem'] = mem_usage(); $stats['uptime'] = get_uptime(); $stats['states'] = get_pfstate(); $stats['temp'] = get_temp(); $stats['datetime'] = update_date_time(); $stats['interfacestatistics'] = get_interfacestats(); $stats['interfacestatus'] = get_interfacestatus(); $stats['cpufreq'] = get_cpufreq(); $stats['load_average'] = get_load_average(); $stats['mbuf'] = get_mbuf(); $stats['mbufpercent'] = get_mbuf(true); $stats['statepercent'] = get_pfstate(true); $stats = join("|", $stats); return $stats; }
?> </td> </tr> <?php } ?> <tr> <th><?php echo gettext("CPU Type"); ?> </th> <td><?php echo htmlspecialchars(get_single_sysctl("hw.model")); ?> <div id="cpufreq"><?php echo get_cpufreq(); ?> </div> <?php $cpucount = get_cpu_count(); if ($cpucount > 1) { ?> <div id="cpucount"> <?php echo htmlspecialchars($cpucount); ?> <?php echo gettext('CPUs'); ?> : <?php echo htmlspecialchars(get_cpu_count(true));