chore: Bump dependencies

This commit is contained in:
Clément Renault 2019-09-18 14:41:37 +02:00
parent 1b18679950
commit 69e0bae75e
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 9 additions and 8 deletions

View file

@ -154,7 +154,8 @@ fn index(
// write stats
let directory_size = Walk::new(&[database_path.to_owned()], 4).run();
system.refresh_all();
let memory = system.get_process(sysinfo::get_current_pid()).unwrap().memory(); // in kb
let pid = sysinfo::get_current_pid()?;
let memory = system.get_process(pid).unwrap().memory(); // in kb
wtr.write_record(&[i.to_string(), directory_size.to_string(), memory.to_string()])?;
wtr.flush()?;
}