1
0
mirror of https://github.com/danog/ytop.git synced 2024-11-26 20:15:03 +01:00

WIP proc widget

This commit is contained in:
Caleb Bassi 2020-01-13 08:19:05 -08:00
parent ba88fc1478
commit 2a7c855c52

View File

@ -53,7 +53,11 @@ impl UpdatableWidget for ProcWidget<'_> {
.into_iter()
.filter_map(|process| process.ok())
.for_each(|process| {
self.processes.insert(process.pid(), process);
if !self.processes.contains_key(&process.pid())
|| self.processes[&process.pid()] != process
{
self.processes.insert(process.pid(), process);
}
});
let mut to_remove = Vec::new();