diff options
Diffstat (limited to 'trace-plot-task.c')
| -rw-r--r-- | trace-plot-task.c | 4 |
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 | ||
| 56 | static int hash_cpu(int cpu) | 56 | static 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 | ||
| 61 | static gboolean is_running(struct graph_info *ginfo, struct record *record) | 63 | static gboolean is_running(struct graph_info *ginfo, struct record *record) |
