/[hurd]/hurd/utils/vmstat.c
ViewVC logotype

Diff of /hurd/utils/vmstat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by roland, Thu Nov 18 06:10:22 1999 UTC revision 1.19 by roland, Sat May 4 22:27:40 2002 UTC
# Line 1  Line 1 
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
# Line 104  print_val (val_t val, enum val_type type Line 103  print_val (val_t val, enum val_type type
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;
# Line 125  print_val (val_t val, enum val_type type Line 124  print_val (val_t val, enum val_type type
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    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26