X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcursesdisplay.c;h=e6482f4a8b94418d6590790488a7c7de578135c5;hb=aa15ac1c699ea5f76f6c26fb14ab22f725ecc293;hp=6ff650ff83b518e72c0ee7b207dbc6664975788e;hpb=e15ed00a84c8afc3a4cee38b2a96128c313b9d13;p=lttngtop.git diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 6ff650f..e6482f4 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Julien Desfossez + * Copyright (C) 2011-2012 Julien Desfossez * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as @@ -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)");