1. 06 Apr, 2018 1 commit
  2. 26 Feb, 2018 8 commits
  3. 18 Feb, 2018 2 commits
  4. 17 Feb, 2018 2 commits
  5. 04 Feb, 2018 2 commits
  6. 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
  7. 01 Aug, 2017 1 commit
  8. 27 Jul, 2017 1 commit
  9. 26 Jul, 2017 1 commit
  10. 23 Jul, 2017 1 commit
    • Richard's avatar
      Mark some things as const · d5faf643
      Richard authored
      Several string pointer arrays pointed to const strings
      but were not const themselves.
      
      A few various structures and arrays were also marked const.
      d5faf643
  11. 10 Jul, 2017 1 commit
  12. 05 Jul, 2017 2 commits
  13. 16 Feb, 2017 1 commit
    • Hisham's avatar
      Cap battery at 100%. · bb8dec15
      Hisham authored
      Apparently invalid results can be returned by buggy drivers in old laptops,
      as reported by @thukydides. See #596.
      bb8dec15
  14. 04 Feb, 2017 1 commit
  15. 31 Jan, 2017 1 commit
  16. 01 Oct, 2016 1 commit
  17. 30 Aug, 2016 1 commit
    • Explorer09's avatar
      Mark signal tables 'const' · 1f3d85b6
      Explorer09 authored
      
      
      Specifically, Platform_signals[] and Platform_numberOfSignals. Both are
      not supposed to be mutable. Marking them 'const' puts them into rodata
      sections in binary. And for Platform_numberOfSignals, this aids
      optimization (aids only Link Time Optimization for now). :)
      Signed-off-by: default avatarKang-Che Sung <explorer09@gmail.com>
      1f3d85b6
  18. 24 Aug, 2016 1 commit
  19. 11 Aug, 2016 1 commit
    • Explorer09's avatar
      Optimize Strings_startWith() · bf35921a
      Explorer09 authored
      Use strncmp() combined with a strlen() will give better performance
      than a strstr in worst case. Especially when the match prefix is a
      constant and not a variable.
      
      While we are at it, replace the match() function in linux/Battery.c,
      which uses a naive algorithm, with a macro that does better job by
      utilizing Strings_startWith().
      
          $ gcc --version | head -n 1
          gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
          $ uname -m
          x86_64
          $ size htop.old htop.new
             text   data    bss    dec    hex filename
           137929  15112   3776 156817  26491 htop.old
           137784  15104   3776 156664  263f8 htop.new
      
      Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
      bf35921a
  20. 19 Jun, 2016 1 commit
  21. 15 Jun, 2016 1 commit
  22. 01 Mar, 2016 1 commit
  23. 20 Feb, 2016 1 commit
  24. 19 Feb, 2016 1 commit
    • Hisham's avatar
      Try to retain last full name of a zombie process. · baec4bdc
      Hisham authored
      Once a process goes zombie on Linux, /proc/PID/cmdline
      gets empty. So, when we detect it is a zombie we stop
      reading this file.
      For processes that were zombies before htop started,
      there's no way to get the full name.
      Closes #49.
      baec4bdc
  25. 16 Feb, 2016 1 commit
  26. 14 Feb, 2016 1 commit
    • Hisham's avatar
      Disable the syscall on systems that don't have it. · 35657208
      Hisham authored
      Got a report in #397 that htop runs in NetBSD
      masquerading as Linux and using a compatibility /proc
      (like we used to in FreeBSD) and that it builds fine
      apart from this syscall.
      35657208
  27. 13 Feb, 2016 1 commit
  28. 02 Feb, 2016 2 commits