Add example for getting bandwidth stats

This commit is contained in:
Vladimir Stoilov
2023-06-30 16:56:39 +03:00
parent 95716dbb47
commit 83479acc95
8 changed files with 154 additions and 41 deletions

View File

@@ -126,7 +126,7 @@ func GetProcessByRequestOrigin(ar *api.Request) (*Process, error) {
Protocol: packet.TCP,
Src: remoteIP, // source as in the process we are looking for
SrcPort: remotePort, // source as in the process we are looking for
PID: -1,
PID: UndefinedProcessID,
}
pid, _, err := GetPidOfConnection(ar.Context(), pkt)