0 minutes, 32 seconds

发布时间:2022-03-20 10:06:52

获取cpu信息 :

cat /proc/cpuinfo


If you want to edit the CPU information yourself manually, please refer to the contents below.

 

———————————————————————————————————————————————————————————————

Location : /usr/syno/synoman/webman/modules/AdminCenter

Source :  admin_center.js / admin_center.js.gz(above 6.2)

 

Add Before -> if(Ext.isDefined(h.cpu_vendor)&&Ext.isDefined(h.cpu_family)&&Ext.isDefined(h.cpu_series)){

    o.push([_T("status","cpu_model_name"),String.format("{0} {1} {2}",h.cpu_vendor,h.cpu_family,h.cpu_series)])}

 

if(Ext.isDefined(h.cpu_cores)){o.push([_T("status","cpu_cores"),h.cpu_cores])}

 

Add contents: 

h.cpu_vendor="Intel";h.cpu_family="Xeon";h.cpu_series="E3-1220 V3";h.cpu_cores="4 Cores (1 CPU/4 Cores | 4 Threads)";

h.cpu_detail="<a href='https://ark.intel.com/content/www/us/en/ark/search.html?_charset_=UTF-8&q=E3-1220 V3' target=_blank>detail</a>"

 

Change contens:

String.format("{0} {1} {2}",h.cpu_vendor,h.cpu_family,h.cpu_series)

to

String.format("{0} {1} {2} {3}",h.cpu_vendor,h.cpu_family,h.cpu_series,h.cpu_detail)

———————————————————————————————————————————————————————————————

 

Finally,

 

All descriptions are based on version 6.2, and the actual executable file supports 5.x, 6.x and 7.x

 

Publish the source through github(https://github.com/FOXBI/ch_cpuinfo).

 

     For versions DSM 6.x and later, you can use the binary as before.

 

     If you use busybox in DSM 5.x, you can use it as a source file(ch_cpuinfo.sh).

 

Please contact me by comment or bug report, i’ll respond to you as much as possible within my ability.