Skip to content

Commit

Permalink
Fix pfiles on platforms with 32-bit stat.st_ino
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallag88 committed Mar 14, 2021
1 parent a60aef3 commit a7301b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ptools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ fn print_file(pid: u64, fd: u64, sockets: &HashMap<u64, SockInfo>) {
// 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 {
Expand Down

0 comments on commit a7301b1

Please sign in to comment.