update catch memory
This commit is contained in:
parent
66690e3d5d
commit
6932aad751
|
|
@ -194,9 +194,9 @@ export const sendDeviceInfora = async () => {
|
|||
line.includes("bytes of memory") ||
|
||||
line.includes("bytes of physical memory")
|
||||
)
|
||||
const mathches = stringMem[0].match(regexSPE)
|
||||
const mathches = stringMem[0]?.match(regexSPE)
|
||||
|
||||
if(mathches && stringMem[0].includes("CHASSIS")){
|
||||
if(mathches && stringMem[0]?.includes("CHASSIS")){
|
||||
console.log(mathches)
|
||||
PID = mathches[0].trim();
|
||||
SN = showInventoryContent.filter((i)=>i.includes(mathches[0].trim()))[0]?.split("SN:")[1]?.replace(/,/g, "").trim();
|
||||
|
|
|
|||
Loading…
Reference in New Issue