aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-plot-task.c')
-rw-r--r--trace-plot-task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c
index 6ba4fb1..794b889 100644
--- a/trace-plot-task.c
+++ b/trace-plot-task.c
@@ -55,7 +55,9 @@ static gint hash_pid(gint val)
55 55
56static int hash_cpu(int cpu) 56static int hash_cpu(int cpu)
57{ 57{
58 return trace_hash(cpu + 124); 58 cpu = (cpu << 3) + cpu * 21;
59
60 return trace_hash(cpu);
59} 61}
60 62
61static gboolean is_running(struct graph_info *ginfo, struct record *record) 63static gboolean is_running(struct graph_info *ginfo, struct record *record)