mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
reduced CPU usage by half
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@860 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -67,14 +67,14 @@ namespace ProcessHacker
|
||||
|
||||
public void Modify(ProcessItem oldItem, ProcessItem newItem)
|
||||
{
|
||||
_processes[newItem.PID].ProcessItem = newItem;
|
||||
|
||||
ProcessNode node = _processes[newItem.PID];
|
||||
|
||||
if (node.ProcessItem.HasParent && node.PPID != -1)
|
||||
this.NodesChanged(this, new TreeModelEventArgs(this.GetPath(
|
||||
_processes.ContainsKey(node.PPID) ? _processes[node.PPID] : null),
|
||||
new object[] { node }));
|
||||
node.ProcessItem = newItem;
|
||||
|
||||
//if (node.ProcessItem.HasParent && node.PPID != -1)
|
||||
// this.NodesChanged(this, new TreeModelEventArgs(this.GetPath(
|
||||
// _processes.ContainsKey(node.PPID) ? _processes[node.PPID] : null),
|
||||
// new object[] { node }));
|
||||
}
|
||||
|
||||
public void Remove(ProcessItem item)
|
||||
|
||||
Reference in New Issue
Block a user