1. 16 Mar, 2018 2 commits
    • wangqr's avatar
      Use fork/exec instead of popen to run lsof (#757) · a042cfec
      wangqr authored
      Fixes #675
      a042cfec
    • Kang-Che Sung (宋岡哲)'s avatar
      Use AM_CFLAGS and AM_LDFLAGS in Makefile.am (#760) · 2e3c35d6
      Kang-Che Sung (宋岡哲) authored
      
      
      This reduces generated Makefile.in size by 74%.
      (217319 bytes -> 56326 bytes)
      
      Automake considers that <prog>_CFLAGS and <prog>_LDFLAGS are
      program-specific build rules, and when such are specified, Automake
      will generate additional code just to avoid the "generic" and
      package-wide AM_CFLAGS or AM_LDFLAGS. (Especially for <prog>_CFLAGS,
      Automake will rename generated object files to become "prog-foo.o" and
      such, and it's _a lot_ of code to achieve this in Makefile.)
      
      There's no reason for htop to rename intermediate object files. It's
      better to make things simpler.
      Signed-off-by: default avatarKang-Che Sung <explorer09@gmail.com>
      2e3c35d6
  2. 02 Mar, 2018 1 commit
    • gmbroome's avatar
      Import Solaris support (#741) · 697f5bb9
      gmbroome authored
      This commit adds support for Solaris, squashed from PR #741:
      
      Summary of additions:
      
      * Initial setup of Solaris platform directory
      * Add Solaris platform into autoconf template
      * Uptime and load averages
      * Add dependency on libkstat
      * Basic process listing
      * Zone name display
      * CPU detection
      * Per-process memory and CPU usage parsed correctly
      * Uses sysconf to discover number of CPUs, instead of more complex libkstat code
      * Simple memory display working
      * Reduce repetitive calls to the PAGE_SIZE macro when reading memory info
      * Add Project, Contract, Task, and Pool into process properties
      * Use system major()/minor() implementations and remove extraneous definition of mkdev()
      * Get the STARTTIME column working properly, using the Linux implementation as a guide
      697f5bb9
  3. 26 Feb, 2018 7 commits
  4. 19 Feb, 2018 1 commit
  5. 18 Feb, 2018 6 commits
  6. 17 Feb, 2018 6 commits
  7. 13 Feb, 2018 1 commit
  8. 05 Feb, 2018 4 commits
  9. 04 Feb, 2018 7 commits
  10. 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
  11. 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
  12. 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
  13. 13 Oct, 2017 1 commit
  14. 22 Sep, 2017 1 commit