1. 26 Aug, 2014 1 commit
  2. 05 Feb, 2014 1 commit
    • Jaromir Capik's avatar
      vmstat: Fixing format-security flaws · dc072ace
      Jaromir Capik authored
      Previously the headers were printed directly without
      the format specifier. That way is considered insecure
      and leads to build errors with -Werror=format-security
      flag set.
      dc072ace
  3. 04 Feb, 2014 1 commit
  4. 20 Jan, 2014 1 commit
    • Jaromir Capik's avatar
      vmstat: wide output still not wide enough? · 1baf31be
      Jaromir Capik authored
      8 digits per memory column is apparently still too low
      for systems with 128TB of RAM. Anyway, setting the limit
      to 999TB (12 digits) must be sufficient for now as it
      produces wide gaps on "regular" computers.
      This commit also increases the number of digits per cpu
      columns from 2 to 3 as some of them can hit the 100%
      maximum in corner cases.
      1baf31be
  5. 25 Nov, 2013 2 commits
    • Jaromir Capik's avatar
      vmstat: support for time stolen from virtual machines · a8a4a4f5
      Jaromir Capik authored
      Surprisingly the code for the 'st' column was added in the past,
      but wasn't enabled. The vmstat manual already contains the 'st'
      column and this commit finally enables the feature.
      a8a4a4f5
    • Jaromir Capik's avatar
      vmstat: -w switch for wider output · 1b97942c
      Jaromir Capik authored
      This is a rework of the merge request #5 that unconditionally
      forced the output to cross the 80 chars border.
      With this commit users can switch to the wide output mode
      with the -w option.
      1b97942c
  6. 10 Oct, 2013 1 commit
    • Craig Small's avatar
      Update options to single strings · 6437aa08
      Craig Small authored
      To assist the translators, each option is a separate string.
      This means if we add/change/delete an option the remaining ones
      will just keep working and only the impacted option needs some
      translation work on it.
      6437aa08
  7. 20 Mar, 2013 1 commit
    • Rainer Müller's avatar
      configure: check for program_invocation_name · 042776e0
      Rainer Müller authored
      For portabiliy, check for program_invocation_name during configure and
      define HAVE_PROGRAM_INVOCATION_NAME accordingly. Use of this symbol is
      now enclosed with the appropriate #ifdef block.
      
      The symbol program_invocation_name is only used for error message
      handling using error(), so it's safe to omit this if it is not
      available.
      042776e0
  8. 06 Nov, 2012 1 commit
  9. 30 Oct, 2012 1 commit
  10. 28 Jul, 2012 1 commit
    • Jaromir Capik's avatar
      vmstat si and so fields zero with -S mM 1 · 00d7d4e3
      Jaromir Capik authored
      'si' and 'so' values depend on the result of the unitConvert
      function where the output is a fixed-point size of kb_per_page
      after the conversion. It gives 4 for kB units and 0 for MB units.
      This also causes problems when switching between 'K' and 'k'
      since the output value is 4 in both cases and the result for
      'k' and 'K' then doesn't differ ... I swapped the conversion with
      multiplication in order to make the number higher so it doesn't
      lose precision. Since the unitConvert now accepts long instead
      of int, I had to change the input type from int to long.
      Signed-off-by: Craig Small's avatarCraig Small <[email protected]>
      00d7d4e3
  11. 23 Mar, 2012 1 commit
    • Sami Kerola's avatar
      all: check stdout and stderr status at exit · 52269d22
      Sami Kerola authored
      If stream status is not checked at the end of execution below problem
      would not report error, or non-zero exit code.  The uptime is just an
      example same was true with all commands of the project.
      
      $ uptime >&- ; echo $?
      uptime: write error: Bad file descriptor
      1
      $ uptime >/dev/full ; echo $?
      uptime: write error: No space left on device
      1
      Signed-off-by: default avatarSami Kerola <[email protected]>
      52269d22
  12. 16 Mar, 2012 1 commit
  13. 15 Mar, 2012 1 commit
  14. 03 Mar, 2012 2 commits
  15. 05 Feb, 2012 1 commit
  16. 26 Jan, 2012 1 commit
    • Mike Frysinger's avatar
      fix printf format warnings · 0da6537c
      Mike Frysinger authored
      pgrep.c: In function 'main':
      pgrep.c:793:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
      
      vmstat.c: In function 'diskpartition_format':
      vmstat.c:382:9: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat]
      vmstat.c:408:10: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat]
      
      w.c: In function 'main':
      w.c:394:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
      Signed-off-by: default avatarMike Frysinger <[email protected]>
      0da6537c
  17. 15 Jan, 2012 1 commit
  18. 03 Jan, 2012 1 commit
    • Craig Small's avatar
      Changed the err and warns to macros · fb11e1fe
      Craig Small authored
      err and warn are BSD format but they are not recommended by library
      developers.  However their consiseness is useful!
      
      The solution is to use some macros that create xerr etc which then
      just map to the error() function.  The next problem is error() uses
      program_invocation_name so we set this to program_invovation_short_name
      
      This is a global set but seems to be the convention (or at least errors
      are on the short name only) used everywhere else.
      fb11e1fe
  19. 02 Jan, 2012 1 commit
  20. 20 Dec, 2011 7 commits
  21. 27 Nov, 2011 1 commit
  22. 15 Oct, 2011 1 commit
  23. 16 Dec, 2010 1 commit
  24. 28 May, 2007 1 commit
  25. 25 Jun, 2006 1 commit
  26. 30 Oct, 2005 3 commits
  27. 04 May, 2004 1 commit
  28. 08 Sep, 2003 1 commit
  29. 16 Aug, 2003 1 commit
    • albert's avatar
      misc · 360e6533
      albert authored
      360e6533
  30. 11 Aug, 2003 1 commit