1. 29 Dec, 2016 1 commit
    • Tomasz Kramkowski's avatar
      Replace all uses of sprintf with snprintf · 2b5c1b4b
      Tomasz Kramkowski authored
      In all the cases where sprintf was being used within htop, snprintf
      could have been used. This patch replaces all uses of sprintf with
      snprintf which makes sure that if a buffer is too small to hold the
      resulting string, the string is simply cut short instead of causing
      a buffer overflow which leads to undefined behaviour.
      
      `sizeof(variable)` was used in these cases, as opposed to `sizeof
      variable` which is my personal preference because `sizeof(variable)`
      was already used in one way or another in other parts of the code.
      2b5c1b4b
  2. 04 May, 2016 1 commit
    • Explorer09's avatar
      Rename Meter.setValues() functions to updateValues() · 9dea20e0
      Explorer09 authored
      Rationale (copied from htop issue #471):
      The function name "setValues" is misleading. For most OOP (object-
      oriented programming) contexts, setXXX functions mean they will change
      some member variables of an object into something specified in
      function arguments. But in the *Meter_setValues() case, the new values
      are not from the arguments, but from a hard-coded source. The caller
      is not supposed to change the values[] to anything it likes, but
      rather to "update" the values from the source. Hence, updateValues is
      a better name for this family of functions.
      9dea20e0
  3. 11 Mar, 2016 1 commit
    • Explorer09's avatar
      Explicit "maxItems" property of meters · 99fb3070
      Explorer09 authored
      Two changes in this commit:
      - All meters now explicitly specify "maxItems" property, even for just
        1 item. (Exception is "container" CPU meter classes, which use
        CUSTOM_METERMODE.)
      - "maxItems" being 0 is now allowed. This will let bar meters and graph
        meters render an empty meter.
      99fb3070
  4. 02 Feb, 2016 1 commit
  5. 23 Oct, 2015 1 commit
  6. 27 Aug, 2015 1 commit
  7. 03 Feb, 2015 1 commit
  8. 22 Jan, 2015 1 commit
  9. 24 Apr, 2014 1 commit
  10. 16 Jan, 2014 2 commits
  11. 18 Dec, 2013 1 commit
  12. 26 Feb, 2013 1 commit
  13. 05 Dec, 2012 1 commit
  14. 26 Dec, 2011 2 commits
  15. 18 Nov, 2011 1 commit
    • Hisham Muhammad's avatar
      Mega-commit with features and tweaks for 1.0: · 7ca10817
      Hisham Muhammad authored
      * Performance improvements
      * Support for splitting CPU meters into two or four columns
        (thanks to Wim Heirman)
      * Switch from PLPA, which is now deprecated, to HWLOC.
      * Bring back support for native Linux sched_setaffinity,
        so we don't have to use HWLOC where we don't need to.
      * Support for typing in user names and column fields in selection panels.
      7ca10817
  16. 08 Sep, 2011 2 commits
  17. 26 May, 2011 2 commits
  18. 31 Mar, 2011 1 commit
  19. 22 Mar, 2011 1 commit
  20. 22 Nov, 2010 1 commit
  21. 24 Aug, 2010 1 commit
  22. 30 Jun, 2010 1 commit
  23. 25 Feb, 2010 2 commits
  24. 02 Jun, 2009 1 commit
  25. 09 Mar, 2008 1 commit
  26. 09 Nov, 2007 1 commit
  27. 04 Oct, 2006 1 commit
  28. 12 Jul, 2006 1 commit
  29. 06 Jun, 2006 1 commit
  30. 09 May, 2006 1 commit
  31. 10 Apr, 2006 1 commit
  32. 23 Mar, 2006 1 commit
  33. 04 Mar, 2006 1 commit