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:
parent
ba88fc1478
commit
2a7c855c52
@ -53,7 +53,11 @@ impl UpdatableWidget for ProcWidget<'_> {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|process| process.ok())
|
.filter_map(|process| process.ok())
|
||||||
.for_each(|process| {
|
.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();
|
let mut to_remove = Vec::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user