top: improve CPU% calculation

style fixes
This commit is contained in:
Denis Vlasenko
2006-11-05 00:38:51 +00:00
parent 9d4533ede1
commit fa07680091
5 changed files with 56 additions and 59 deletions

View File

@ -64,7 +64,7 @@ int ps_main(int argc, char **argv)
if (sid) {
/* I assume sid initialized with NULL */
len = strlen(sid)+1;
len = strlen(sid) + 1;
safe_strncpy(sbuf, sid, len);
freecon(sid);
sid = NULL;