From: Julien Desfossez Date: Thu, 26 Apr 2012 19:50:09 +0000 (-0400) Subject: replace TGID by PID to remain coherent with other views X-Git-Tag: v0.2~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6153ec123e4ad29d2b44521e46d80aaf9a07ed69;p=lttngtop.git replace TGID by PID to remain coherent with other views Signed-off-by: Julien Desfossez --- diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 6ff650f..5776430 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -585,9 +585,9 @@ void update_cputop_display() /* CPU(%) */ mvwprintw(center, current_line + header_offset, 1, "%1.2f", tmp->totalcpunsec / maxcputime); - /* TGID */ - mvwprintw(center, current_line + header_offset, 11, "%d", tmp->pid); /* PID */ + mvwprintw(center, current_line + header_offset, 11, "%d", tmp->pid); + /* TID */ mvwprintw(center, current_line + header_offset, 21, "%d", tmp->tid); /* NAME */ mvwprintw(center, current_line + header_offset, 31, "%s", tmp->comm); @@ -1419,8 +1419,8 @@ void init_view_headers() { cputopview[0].title = strdup("CPU(%)"); cputopview[0].sort = 1; - cputopview[1].title = strdup("TGID"); - cputopview[2].title = strdup("PID"); + cputopview[1].title = strdup("PID"); + cputopview[2].title = strdup("TID"); cputopview[3].title = strdup("NAME"); iostreamtopview[0].title = strdup("R (B/sec)");