From 5696218306eec632c164897e7fac012d4eef5327 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 18 Aug 2013 10:44:37 +0000 Subject: Make the "FD" column one character wider, so that "trace" can also align properly. --- usr.bin/procstat/procstat_files.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c index a3137db..72600de 100644 --- a/usr.bin/procstat/procstat_files.c +++ b/usr.bin/procstat/procstat_files.c @@ -332,19 +332,19 @@ procstat_files(struct procstat *procstat, struct kinfo_proc *kipp) printf("%5d ", kipp->ki_pid); printf("%-16s ", kipp->ki_comm); if (fst->fs_uflags & PS_FST_UFLAG_CTTY) - printf("ctty "); + printf(" ctty "); else if (fst->fs_uflags & PS_FST_UFLAG_CDIR) - printf(" cwd "); + printf(" cwd "); else if (fst->fs_uflags & PS_FST_UFLAG_JAIL) - printf("jail "); + printf(" jail "); else if (fst->fs_uflags & PS_FST_UFLAG_RDIR) - printf("root "); + printf(" root "); else if (fst->fs_uflags & PS_FST_UFLAG_TEXT) - printf("text "); + printf(" text "); else if (fst->fs_uflags & PS_FST_UFLAG_TRACE) printf("trace "); else - printf("%4d ", fst->fs_fd); + printf("%5d ", fst->fs_fd); switch (fst->fs_type) { case PS_FST_TYPE_VNODE: -- cgit v1.1