From a7301b16e1cf413b50ade75168b751de5f106a87 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Sun, 14 Mar 2021 11:18:08 -0700 Subject: [PATCH] Fix pfiles on platforms with 32-bit stat.st_ino --- src/ptools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ptools.rs b/src/ptools.rs index 84982b2..c77f479 100644 --- a/src/ptools.rs +++ b/src/ptools.rs @@ -572,7 +572,7 @@ fn print_file(pid: u64, fd: u64, sockets: &HashMap) { // any info for the socket in procfs. // TODO make sure we are displaying information that is for the correct namespace // TODO handle IPv6 - if let Some(sock_info) = sockets.get(&stat_info.st_ino) { + if let Some(sock_info) = sockets.get(&(stat_info.st_ino as u64)) { print_sock_type(&sock_info.sock_type); print_sock_address(&sock_info); } else {