diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-12 22:07:58 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-12 22:08:22 -0400 |
commit | 5db972de06d6aa805c2dd6e8b1789b659ae79fcd (patch) | |
tree | 6bd133afed412eeb2f2b6cc591c2cd3744df0168 | |
parent | 6cf247f795004f7e9a2e99cd245fadd9598bc10b (diff) |
usr: kstat: Improve log formatting
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/kstat/kstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/kstat/kstat.c b/usr.bin/kstat/kstat.c index f062015..cbbe602 100644 --- a/usr.bin/kstat/kstat.c +++ b/usr.bin/kstat/kstat.c @@ -97,12 +97,10 @@ get_sched_stat(void) nonline = (stat.ncpu - noffline); online_percent = (uint16_t)(((double)nonline / (nonline + noffline)) * 100); - printf("-------------------------------\n"); - printf("Number of tasks: %d\n", stat.nproc); - printf("Number of cores online: %d\n", stat.ncpu); - printf("Scheduler quantum: %d usec\n", stat.quantum_usec); + printf("number of tasks: %d\n", stat.nproc); + printf("number of cores online: %d\n", stat.ncpu); + printf("scheduler quantum: %d usec\n", stat.quantum_usec); printf("CPU is %d%% online\n", online_percent); - printf("-------------------------------\n"); /* * Log out some per-cpu information @@ -116,7 +114,9 @@ get_sched_stat(void) int main(void) { + printf("-- scheduler statistics --\n"); get_sched_stat(); + printf("-- memory statistics --\n"); get_vm_stat(); return 0; } |