1. 04 Feb, 2018 3 commits
    • Wataru Ashihara's avatar
      Fix: infinite loop in tree view on macOS · b34d76cd
      Wataru Ashihara authored
      Fixes #688, the bug regressed on 584a9bce.
      
      On Mac OS X 10.11.6, all processes have their parents since there's a
      special process named "kernel_task", whose PID and PPID are 0. As a
      result, `this->processes` is never changed causing infinite `while`.
      b34d76cd
    • Vladimir Panteleev's avatar
      Add support for Linux TASK_IDLE · 87be623e
      Vladimir Panteleev authored
      Linux commit 06eb61844d841d0032a9950ce7f8e783ee49c0d0 ("sched/debug:
      Add explicit TASK_IDLE printing") exposes kthreads idling using
      TASK_IDLE in procfs as "I (idle)".
      
      Until now, when sorting the STATE ("S") column, htop used the raw
      value of the state character for comparison, however that led to the
      undesirable effect of TASK_IDLE ('I') tasks being sorted above tasks
      that were running ('R').
      
      Thus, explicitly recognize the idle process state, and sort it below
      others.
      87be623e
    • Hisham Muhammad's avatar
  2. 23 Jan, 2018 1 commit
    • Lucas C. Villa Real's avatar
      htop scans /proc to determine how many running tasks exist. Since that · ad991876
      Lucas C. Villa Real authored
      operation is not possible to be conducted in an atomic fashion, task
      scheduling effects can lead to a count greater than the number of actual
      processors; this is more easily noticed on machines with several CPUs
      and under heavy workload.
      This patch simply adds an upper bound on cpuCount to guarantee
      consistent reports of the number of running tasks at any given time.
      ad991876
  3. 04 Dec, 2017 1 commit
    • André Carvalho's avatar
      Adds support for linux delay accounting (#667) · b7b66b76
      André Carvalho authored
      Adds support for showing columns with linux delay accounting.
      
      This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan.
      b7b66b76
  4. 23 Oct, 2017 1 commit
    • Christian Hesse's avatar
      fix fallthough comments for GCC 7.x · 52831955
      Christian Hesse authored
      GCC 7.x does some extended checks on fallthough for switch/case
      statement. The warning looks like this:
      
      warning: this statement may fall through [-Wimplicit-fallthrough=]
      
      It can be told about implicit fallthough, however it does not
      recognize comments within blocks, so move the comments outside.
      52831955
  5. 13 Oct, 2017 1 commit
  6. 22 Sep, 2017 1 commit
  7. 14 Sep, 2017 1 commit
  8. 04 Sep, 2017 1 commit
  9. 01 Sep, 2017 2 commits
  10. 01 Aug, 2017 1 commit
  11. 29 Jul, 2017 1 commit
  12. 27 Jul, 2017 2 commits
  13. 26 Jul, 2017 5 commits
  14. 25 Jul, 2017 1 commit
  15. 24 Jul, 2017 1 commit
  16. 23 Jul, 2017 2 commits
  17. 15 Jul, 2017 1 commit
  18. 10 Jul, 2017 4 commits
  19. 07 Jul, 2017 1 commit
  20. 05 Jul, 2017 2 commits
  21. 06 Jun, 2017 2 commits
  22. 01 Jun, 2017 1 commit
  23. 23 May, 2017 1 commit
  24. 25 Apr, 2017 3 commits