projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TimeWindow now has end_time
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
controlflow
/
processlist.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
index 6e2ec2c75fcade1b85face1721c7419169496683..9bedbc99f4c5cbe815d34edc73e917e49731b467 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
+++ b/
ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
@@
-233,16
+233,17
@@
gint process_sort_func ( GtkTreeModel *model,
}
}
-static guint hash_fct(gconstpointer key)
+static guint
process_list_
hash_fct(gconstpointer key)
{
{
- return ((ProcessInfo*)key)->pid ^ ((ProcessInfo*)key)->cpu;
+ guint pid = ((ProcessInfo*)key)->pid;
+ return ((pid>>8 ^ pid>>4 ^ pid>>2 ^ pid) ^ ((ProcessInfo*)key)->cpu);
}
}
-static gboolean equ_fct(gconstpointer a, gconstpointer b)
+static gboolean
process_list_
equ_fct(gconstpointer a, gconstpointer b)
{
const ProcessInfo *pa = (const ProcessInfo*)a;
const ProcessInfo *pb = (const ProcessInfo*)b;
{
const ProcessInfo *pa = (const ProcessInfo*)a;
const ProcessInfo *pb = (const ProcessInfo*)b;
-
+
if(pa->pid != pb->pid)
return 0;
if(pa->pid != pb->pid)
return 0;
@@
-307,7
+308,7
@@
ProcessList *processlist_construct(void)
GTK_SORT_ASCENDING);
process_list->process_hash = g_hash_table_new_full(
GTK_SORT_ASCENDING);
process_list->process_hash = g_hash_table_new_full(
-
hash_fct,
equ_fct,
+
process_list_hash_fct, process_list_
equ_fct,
destroy_hash_key, destroy_hash_data
);
destroy_hash_key, destroy_hash_data
);
@@
-489,8
+490,11
@@
int processlist_add( ProcessList *process_list,
* overriden by the new state before anything is drawn.
*/
hashed_process_data->x.over = 0;
* overriden by the new state before anything is drawn.
*/
hashed_process_data->x.over = 0;
+ hashed_process_data->x.over_used = FALSE;
hashed_process_data->x.middle = 0;
hashed_process_data->x.middle = 0;
+ hashed_process_data->x.middle_used = FALSE;
hashed_process_data->x.under = 0;
hashed_process_data->x.under = 0;
+ hashed_process_data->x.under_used = FALSE;
/* Add a new row to the model */
gtk_list_store_append ( process_list->list_store,
/* Add a new row to the model */
gtk_list_store_append ( process_list->list_store,
This page took
0.026931 seconds
and
4
git commands to generate.