mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-26 10:20:51 +01:00
Fix imports for procfs v0.7.7
* Everything we need is under process:: now, so prefix with it.
This commit is contained in:
parent
01bde4f2b2
commit
a5e2342bfd
@ -5,7 +5,7 @@ use std::sync::mpsc;
|
|||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use procfs::MemoryMap;
|
use procfs::process::MemoryMap;
|
||||||
|
|
||||||
use netstat::*;
|
use netstat::*;
|
||||||
use read_process_memory::*;
|
use read_process_memory::*;
|
||||||
@ -228,7 +228,7 @@ fn get_mem_maps(pid: Pid) -> Vec<MemoryMap> {
|
|||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
fn get_mem_maps(pid: Pid) -> Vec<MemoryMap>{
|
fn get_mem_maps(pid: Pid) -> Vec<MemoryMap>{
|
||||||
let mut ret: Vec<MemoryMap> = Vec::new();
|
let mut ret: Vec<MemoryMap> = Vec::new();
|
||||||
let habbo_proc = procfs::Process::new(pid as i32).unwrap();
|
let habbo_proc = procfs::process::Process::new(pid as i32).unwrap();
|
||||||
|
|
||||||
let maps = habbo_proc.maps().unwrap();
|
let maps = habbo_proc.maps().unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user