1. 27 Aug, 2014 1 commit
    • Jim Brown IV's avatar
      tload: fix lockup · 2f975ba4
      Jim Brown IV authored
      It looks like an off by one error was added to tload a couple years
      ago while removing goto statements.  This causes tload to go into
      an endless loop when the load is just under a scale change integer.
      eg: .99, 1.99, 3.99, 7.99
      to reproduce you can add, just under the loadavg at line 170 in tload.c:
      av[0] = 1.99;
      or get the load to that level separately.
      The patch below makes the code more like the original, but without the
      goto statements.  This can also be fixed by just changing line 183 in
      tload.c from "if (0 < row)" -> "if (0 <= row)".
  2. 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.
  3. 07 Apr, 2013 1 commit
  4. 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
  5. 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
      $ uptime >/dev/full ; echo $?
      uptime: write error: No space left on device
      Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>
  6. 03 Mar, 2012 1 commit
  7. 21 Jan, 2012 2 commits
  8. 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.
  9. 02 Jan, 2012 1 commit
  10. 20 Dec, 2011 7 commits
  11. 18 Dec, 2011 1 commit
  12. 19 Oct, 2011 1 commit
  13. 01 Feb, 2002 1 commit