From 9c54bbe405f1faa2ed4b7cea179faa6beeb1b017 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 10 Dec 2010 17:38:21 -0800 Subject: [PATCH] utilities - Fix top formatting when > 9 cpus present * Change %1x format to %02d --- usr.bin/top/m_dragonfly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/top/m_dragonfly.c b/usr.bin/top/m_dragonfly.c index be4303d8dc..cbf108d750 100644 --- a/usr.bin/top/m_dragonfly.c +++ b/usr.bin/top/m_dragonfly.c @@ -100,7 +100,7 @@ static char smp_header[] = " PID %-*.*s NICE SIZE PRES STATE C TIME CTIME CPU COMMAND"; #define smp_Proc_format \ - "%5d %-*.*s %3d%7s %6s %7.7s %1x %7s %7s %5.2f%% %.*s" + "%5d %-*.*s %3d%7s %6s %7.7s %02d %6s %7s %5.2f%% %.*s" static char up_header[] = " PID %-*.*s NICE SIZE PRES STATE TIME CTIME CPU COMMAND"; -- 2.41.0