Update regex inventory

This commit is contained in:
nguyentrungthat 2026-03-26 08:08:38 +07:00
parent c7040f7ac7
commit 7888fc4090
3 changed files with 10 additions and 3 deletions

View File

@ -1209,7 +1209,7 @@ Ports Missing/Down: ${missing.length}\n\n`
} else {
this.checkingPhysicalPort()
}
}, 15000)
}, 10000)
}
async checkingPhysicalPort() {

View File

@ -126,10 +126,17 @@ const parseLog = (data: string) => {
}
return records.sort((a: any, b: any) => {
const getScore = (item: any) => {
if (item?.name?.toLowerCase().includes('stack')) return 100
if (
item?.name?.toLowerCase().includes('stack') ||
item?.descr?.toLowerCase().includes('stack')
)
return 100
if (!item.pid) return 100
return 0
}
if (getScore(a) === getScore(b) && a?.sn === b?.sn) {
return b?.pid?.length - a?.pid?.length
}
return getScore(a) - getScore(b)
})

View File

@ -1224,7 +1224,7 @@ const ModalTerminal = ({
<Tabs.Panel value="physical">
<AutoProgress
start={isPhysicalTest || false}
ms={15000}
ms={10000}
style={{ marginTop: "8px" }}
/>
<fieldset>