=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.82 retrieving revision 1.83 diff -c -r1.82 -r1.83 *** src/usr.bin/top/top.c 2014/09/17 01:56:54 1.82 --- src/usr.bin/top/top.c 2015/05/06 07:53:29 1.83 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.82 2014/09/17 01:56:54 dlg Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.83 2015/05/06 07:53:29 mpi Exp $ */ /* * Top users/processes display for Unix *************** *** 360,368 **** /* initialize termcap */ init_termcap(interactive); - /* get the string to use for the process area header */ - header_text = format_header(uname_field); - /* initialize display interface */ max_topn = display_init(&statics); --- 360,365 ---- *************** *** 472,477 **** --- 469,477 ---- /* handle message area */ i_message(); + /* get the string to use for the process area header */ + header_text = format_header(uname_field, ps.threads); + /* update the header area */ i_header(header_text); *************** *** 502,508 **** char * s; s = format_next_process(processes, get_userid, ! &pid); i_process(i, s, pid == hlpid); } } --- 502,508 ---- char * s; s = format_next_process(processes, get_userid, ! &pid, ps.threads); i_process(i, s, pid == hlpid); } }