1 |
/* Print vm statistics |
/* Print vm statistics |
2 |
|
|
3 |
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. |
Copyright (C) 1996,97,99,2002 Free Software Foundation, Inc. |
4 |
|
Written by Miles Bader <miles@gnu.org> |
|
Written by Miles Bader <miles@gnu.ai.mit.edu> |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
103 |
size_t size_units, int fwidth, int sign) |
size_t size_units, int fwidth, int sign) |
104 |
{ |
{ |
105 |
if (type == PCENT) |
if (type == PCENT) |
106 |
printf (sign ? "%+*d%%" : "%*d%%", fwidth - 1, val); |
printf (sign ? "%+*lld%%" : "%*lld%%", fwidth - 1, val); |
107 |
else if ((type == SIZE || type == PAGESZ) && size_units == 0) |
else if ((type == SIZE || type == PAGESZ) && size_units == 0) |
108 |
{ |
{ |
109 |
float fval = val; |
float fval = val; |
124 |
{ |
{ |
125 |
if ((type == SIZE || type == PAGESZ) && size_units > 0) |
if ((type == SIZE || type == PAGESZ) && size_units > 0) |
126 |
val /= size_units; |
val /= size_units; |
127 |
printf (sign ? "%+*d" : "%*d", fwidth, val); |
printf (sign ? "%+*lld" : "%*lld", fwidth, val); |
128 |
} |
} |
129 |
} |
} |
130 |
|
|