mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-13 10:34:08 +08:00
fix: resolve network connection count always showing 0 in process list (#10979)
This commit is contained in:
parent
fd270263f4
commit
f1677f5a67
2 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,10 @@ func getProcessData(processConfig PsProcessConfig) (res []byte, err error) {
|
|||
procData.RssValue = 0
|
||||
}
|
||||
|
||||
if connections, err := proc.Connections(); err == nil {
|
||||
procData.NumConnections = len(connections)
|
||||
}
|
||||
|
||||
resultMutex.Lock()
|
||||
result = append(result, procData)
|
||||
resultMutex.Unlock()
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@ const columns = ref([
|
|||
title: i18n.global.t('process.numConnections'),
|
||||
dataKey: 'numConnections',
|
||||
width: 100,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
key: 'status',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue