mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Print fork statistics with %u as they are unsigned quantities.
PR: 65889 Submitted by: Ken Stailey
This commit is contained in:
parent
2fb38b860c
commit
6d4ba9cd4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128573
|
@ -763,15 +763,15 @@ static void
|
|||
doforkst(void)
|
||||
{
|
||||
fill_vmmeter(&sum);
|
||||
(void)printf("%d forks, %d pages, average %.2f\n",
|
||||
(void)printf("%u forks, %u pages, average %.2f\n",
|
||||
sum.v_forks, sum.v_forkpages,
|
||||
sum.v_forks == 0 ? 0.0 :
|
||||
(double)sum.v_forkpages / sum.v_forks);
|
||||
(void)printf("%d vforks, %d pages, average %.2f\n",
|
||||
(void)printf("%u vforks, %u pages, average %.2f\n",
|
||||
sum.v_vforks, sum.v_vforkpages,
|
||||
sum.v_vforks == 0 ? 0.0 :
|
||||
(double)sum.v_vforkpages / sum.v_vforks);
|
||||
(void)printf("%d rforks, %d pages, average %.2f\n",
|
||||
(void)printf("%u rforks, %u pages, average %.2f\n",
|
||||
sum.v_rforks, sum.v_rforkpages,
|
||||
sum.v_rforks == 0 ? 0.0 :
|
||||
(double)sum.v_rforkpages / sum.v_rforks);
|
||||
|
|
Loading…
Reference in a new issue