mirror of https://github.com/wh1te909/rmmagent.git
return mem in bytes
This commit is contained in:
parent
fce650b893
commit
04470dd4ce
|
@ -10,7 +10,7 @@ import (
|
||||||
type ProcessMsg struct {
|
type ProcessMsg struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Pid int `json:"pid"`
|
Pid int `json:"pid"`
|
||||||
Mem string `json:"memory_percent"`
|
MemBytes uint64 `json:"membytes"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
UID int `json:"id"`
|
UID int `json:"id"`
|
||||||
CPU string `json:"cpu_percent"`
|
CPU string `json:"cpu_percent"`
|
||||||
|
@ -40,7 +40,7 @@ func (a *WindowsAgent) GetProcsRPC() []ProcessMsg {
|
||||||
ret = append(ret, ProcessMsg{
|
ret = append(ret, ProcessMsg{
|
||||||
Name: p.Name,
|
Name: p.Name,
|
||||||
Pid: p.PID,
|
Pid: p.PID,
|
||||||
Mem: ByteCountSI(m.Resident),
|
MemBytes: m.Resident,
|
||||||
Username: user,
|
Username: user,
|
||||||
UID: i,
|
UID: i,
|
||||||
CPU: fmt.Sprintf("%.1f", cpu),
|
CPU: fmt.Sprintf("%.1f", cpu),
|
||||||
|
|
Loading…
Reference in New Issue