aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-graph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trace-graph.c b/trace-graph.c
index 8505169..7044fac 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -888,8 +888,10 @@ static void draw_cpu(struct graph_info *ginfo, gint cpu,
888 888
889 if (last_pid != pid) { 889 if (last_pid != pid) {
890 890
891 if (last_pid < 0) 891 if (last_pid < 0) {
892 last_pid = pid; 892 last_pid = pid;
893 set_color_by_pid(ginfo->draw, gc, pid);
894 }
893 895
894 if (last_pid) 896 if (last_pid)
895 gdk_draw_rectangle(ginfo->curr_pixmap, gc, 897 gdk_draw_rectangle(ginfo->curr_pixmap, gc,