mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
system: separate core and thread count
Some people find it confusing that "cores" references threads.
This commit is contained in:
parent
494733dbd5
commit
2fdaab1552
@ -58,8 +58,9 @@ function system_api_cpu_stats()
|
||||
}
|
||||
|
||||
// cpu model and count
|
||||
$cpustats['model'] = get_single_sysctl("hw.model");
|
||||
$cpustats['model'] = get_single_sysctl('hw.model');
|
||||
$cpustats['cpus'] = get_single_sysctl('kern.smp.cpus');
|
||||
$cpustats['cores'] = get_single_sysctl('kern.smp.cores');
|
||||
|
||||
// cpu frequency
|
||||
$tmp = get_single_sysctl('dev.cpu.0.freq_levels');
|
||||
|
||||
@ -75,7 +75,7 @@ require_once("system.inc");
|
||||
|
||||
$("#system_information_widget_firmware").html(data['firmware']);
|
||||
|
||||
$("#system_information_widget_cpu_type").html(data['cpu']['model'] + ' ('+data['cpu']['cpus']+' cores)');
|
||||
$("#system_information_widget_cpu_type").html(data['cpu']['model'] + ' ('+data['cpu']['cores']+' cores, '+data['cpu']['cpus']+' threads)');
|
||||
var uptime_days = parseInt(moment.duration(parseInt(data['uptime']), 'seconds').asDays());
|
||||
var uptime_str = "";
|
||||
if (uptime_days > 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user