- 31 Mar, 2016 1 commit
-
-
Hisham authored
-
- 20 Mar, 2016 1 commit
-
-
Hisham Muhammad authored
Assert (Platform_meterTypes[0] == &CPUMeter_class)
-
- 19 Mar, 2016 1 commit
-
-
Explorer09 authored
Just assume Platform_meterTypes[0] is always &CPUMeter_class for every platform. This removes a conditional in AvailableMetersPanel_new(). Also adds some comments about the logic here. Without assuming Platform_meterTypes[0], the (int i=1) clause in this for loop will not make sense. (I.e. Why not (int i=0)? ) Also replaced a sprintf() call with safer snprintf() in code further below.
-
- 13 Mar, 2016 1 commit
-
-
Hisham Muhammad authored
Explicit "maxItems" property of meters
-
- 11 Mar, 2016 2 commits
-
-
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.
-
Explorer09 authored
calloc() allows 'nmemb' or 'size' to be zero, in which case NULL may be returned. Letting htop die because of either argument being zero doesn't make sense. As a side note: As size_t is unsigned, compiler should be able to optimize conditional (nmemb > 0 && size > 0) to (nmemb && size). This theorically shouldn't increase code size too much.
-
- 09 Mar, 2016 2 commits
-
-
Hisham Muhammad authored
Avoid overlapping key values defined by curses (Real fix).
-
Explorer09 authored
Real fix for issue #438.
-
- 08 Mar, 2016 1 commit
-
-
Hisham authored
Closes #438.
-
- 07 Mar, 2016 8 commits
-
-
Hisham authored
-
Hisham Muhammad authored
-
Hisham Muhammad authored
-
Hisham Muhammad authored
-
-
Hisham Muhammad authored
Misc. OpenBSD tuneup and improvement
-
Hisham Muhammad authored
Improve error reporting on FreeBSD libkvm call
-
https://github.com/juanfra684/htopHisham Muhammad authored
Merge branch 'openbsd-mem-used' of https://github.com/juanfra684/htop into juanfra684-openbsd-mem-used
-
- 06 Mar, 2016 3 commits
-
-
Michael McConville authored
Namely: o use malloc where an xCalloc slipped in o safeguard against an empty arg list - I don't think it's possible, but it would be potentially exploitable o we need to initialize the arg string to an empty string because we no longer use strlcpy(3) o annotate a tricky use of strlcpy(3)'s truncation
-
Michael McConville authored
Including: o set *basenameEnd even in error cases (FreeBSD probably needs this) o use kvm_openfiles(3) rather than kvm_open(3) so that we can report errors (as with FreeBSD) o sanify the process argument list creation by using strlcat(3) o drop the pageSizeKb variable and use the PAGE_SIZE_KB macro directly, as the page size can't change anyway o clean up a few macros, add MINIMUM() and MAXIMUM() (should be mirrored to FreeBSD) o fix some syntax o add some useful comments
-
Michael McConville authored
This involves switching from kvm_open(3) to kvm_openfiles(3). The only difference is that the latter has saner error reporting (see the man page for details). We can now fatally report the error rather than just calling assert(3).
-
- 01 Mar, 2016 4 commits
-
-
Hisham Muhammad authored
Add "p" to Help
-
https://github.com/hishamhm/htopHisham authored
-
Hisham authored
-
Hisham authored
-
- 29 Feb, 2016 1 commit
-
-
Marco Hinz authored
-
- 27 Feb, 2016 2 commits
-
-
Hisham Muhammad authored
Fix low CPU usage reporting in FreeBSD
-
Tim Creech authored
-
- 20 Feb, 2016 1 commit
-
-
Hisham authored
Display them properly. Not fully convinced of the "no perm" message...
-
- 19 Feb, 2016 9 commits
-
-
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.
-
Hisham authored
Shouldn't be needed, but I had to make this tweak to make this work again.
-
Hisham authored
-
Hisham authored
-
Hisham authored
-
https://github.com/hishamhm/htopHisham authored
-
Hisham authored
Thank you @Explorer09 for the push! Closes #417.
-
-
Hisham Muhammad authored
Also fixes the basename offset for highlighting the basename. Closes #379.
-
- 18 Feb, 2016 3 commits
-
-
Hisham authored
Closes #370.
-
Hisham Muhammad authored
Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread and https://github.com/max-horvath/htop-osx/blob/e86692e869e30b0bc7264b3675d2a4014866ef46/ProcessList.c This should be a fix for #361.
-
Hisham Muhammad authored
This simplifies the protocol between the platform-independent and platform-specific parts. The platform-specific parts were supposed to re-determine the value of process->show on each iteration, and the Darwin subsystem wasn't doing that. Instead of adding the code to the Darwin part, I lifted the burden of the OS-specific of resetting process->show: now they can choose to hide a process if they want to (e.g. detecting kernel threads) but are not required to (e.g. on Darwin where we're not listing threads separately (yet?)). Fixes tree view collapsing/expanding on OSX. Closes #416.
-