fix(node_info): return average and core temps for intel (#302)
Co-authored-by: Meliox <na>
This commit is contained in:
parent
bc87579d77
commit
e46734cd37
@ -98,6 +98,7 @@ sub _get_temperature_sensors {
|
|||||||
hdd => $config{lm_sensors}{enable_hdd_temp} ? \1 : \0,
|
hdd => $config{lm_sensors}{enable_hdd_temp} ? \1 : \0,
|
||||||
other => $config{lm_sensors}{enable_other_temp} ? \1 : \0,
|
other => $config{lm_sensors}{enable_other_temp} ? \1 : \0,
|
||||||
temp_unit => $config{lm_sensors}{temp_unit},
|
temp_unit => $config{lm_sensors}{temp_unit},
|
||||||
|
cpu_temp_target => $config{lm_sensors}{cpu_temp_target},
|
||||||
data => { 'PVE MOD lm-sensors Enhanced' => $sensors_json },
|
data => { 'PVE MOD lm-sensors Enhanced' => $sensors_json },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -229,8 +229,8 @@ Ext.define('PVE.node.StatusView', {
|
|||||||
const cpuKeysA = Object.keys(objValue).filter(item => String(item).startsWith('k10temp-pci-')).sort();
|
const cpuKeysA = Object.keys(objValue).filter(item => String(item).startsWith('k10temp-pci-')).sort();
|
||||||
const cpuKeysRpi = Object.keys(objValue).filter(item => String(item).startsWith('cpu_thermal-virtual-')).sort();
|
const cpuKeysRpi = Object.keys(objValue).filter(item => String(item).startsWith('cpu_thermal-virtual-')).sort();
|
||||||
const bINTEL = cpuKeysI.length > 0 ? true : false;
|
const bINTEL = cpuKeysI.length > 0 ? true : false;
|
||||||
const INTELPackagePrefix = 'Core' == 'Core' ? 'Core ' : 'Package id';
|
const INTELPackagePrefix = value.cpu_temp_target == 'Core' ? 'Core ' : 'Package id';
|
||||||
const INTELPackageCaption = 'Core' == 'Core' ? 'Core' : 'Package';
|
const INTELPackageCaption = value.cpu_temp_target == 'Core' ? 'Core' : 'Package';
|
||||||
let AMDPackagePrefix = 'Tccd';
|
let AMDPackagePrefix = 'Tccd';
|
||||||
let AMDPackageCaption = 'CCD';
|
let AMDPackageCaption = 'CCD';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user