static guint hash_fct(gconstpointer key)
{
- return ((ProcessInfo*)key)->pid;
+ return ((ProcessInfo*)key)->pid ^ ((ProcessInfo*)key)->cpu;
}
static gboolean equ_fct(gconstpointer a, gconstpointer b)
GtkTreeIter iter;
Process_Info.pid = pid;
- Process_Info.cpu = cpu;
+ if(pid == 0)
+ Process_Info.cpu = cpu;
+ else
+ Process_Info.cpu = 0;
Process_Info.birth = *birth;
Process_Info.trace_num = trace_num;
HashedProcessData *hashed_process_data = NULL;
Process_Info.pid = pid;
- Process_Info.cpu = cpu;
+ if(pid == 0)
+ Process_Info.cpu = cpu;
+ else
+ Process_Info.cpu = 0;
Process_Info.birth = *birth;
Process_Info.trace_num = trace_num;