write out e and e cores to proxmox gui
This commit is contained in:
parent
2b531b19d9
commit
8ebe805917
@ -543,12 +543,19 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
tempStyle = 'color: red; font-weight: bold;';\n\
|
tempStyle = 'color: red; font-weight: bold;';\n\
|
||||||
}\n\
|
}\n\
|
||||||
let tempStr = '';\n\
|
let tempStr = '';\n\
|
||||||
let tempIndex = coreKey.match(/\\\S+\\\s*(\\\d+)/);\n\
|
let tempIndex = coreKey.match(\/(?:P\\\s+Core|E\\\s+Core|Core)\\\s*(\\\d+)\/);\n\
|
||||||
if (tempIndex !== null && tempIndex.length > 1) {\n\
|
if (tempIndex !== null && tempIndex.length > 1) {\n\
|
||||||
tempIndex = tempIndex[1];\n\
|
tempIndex = tempIndex[1];\n\
|
||||||
tempStr = \`\${cpuTempCaption} \${tempIndex}: <span style=\"\${tempStyle}\">\${Ext.util.Format.number(tempVal, formatTemp)}\${cpuTempHelper.getUnit()}</span>\`;\n\
|
let coreType = coreKey.startsWith('P Core') ? 'P Core' :\n\
|
||||||
|
coreKey.startsWith('E Core') ? 'E Core' :\n\
|
||||||
|
cpuTempCaption;\n\
|
||||||
|
tempStr = \`\${coreType} \${tempIndex}: <span style=\"\${tempStyle}\">\${Ext.util.Format.number(tempVal, formatTemp)}\${cpuTempHelper.getUnit()}</span>\`;\n\
|
||||||
} else {\n\
|
} else {\n\
|
||||||
tempStr = \`\${cpuTempCaption}: \${Ext.util.Format.number(tempVal, formatTemp)}\${cpuTempHelper.getUnit()}\`;\n\
|
// fallback for CPUs which do not have a core index\n\
|
||||||
|
let coreType = coreKey.startsWith('P Core') ? 'P Core' :\n\
|
||||||
|
coreKey.startsWith('E Core') ? 'E Core' :\n\
|
||||||
|
cpuTempCaption;\n\
|
||||||
|
tempStr = \`\${coreType}: <span style=\"\${tempStyle}\">\${Ext.util.Format.number(tempVal, formatTemp)}\${cpuTempHelper.getUnit()}</span>\`;\n\
|
||||||
}\n\
|
}\n\
|
||||||
cpuTemps.push(tempStr);\n\
|
cpuTemps.push(tempStr);\n\
|
||||||
}\n\
|
}\n\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user