Skip to content

Commit cc4a9b2

Browse files
vsilentCopilot
andcommitted
fix: use _pid consistently in get_process_comm
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fa74035 commit cc4a9b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/collectors/ebpf/enrichment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl EventEnricher {
7373
}
7474

7575
// Alternative: read from /proc/[pid]/cmdline
76-
let cmdline_path = format!("/proc/{}/cmdline", pid);
76+
let cmdline_path = format!("/proc/{}/cmdline", _pid);
7777
if let Ok(content) = std::fs::read_to_string(&cmdline_path) {
7878
if let Some(first_null) = content.find('\0') {
7979
let path = &content[..first_null];

0 commit comments

Comments
 (0)