Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Final touches to ChangeLog2.0.0 | Hisham | 2016-02-10 | 1 | -0/+4 |
| | |||||
* | Support -1 as tpgid | Hisham | 2016-02-10 | 1 | -2/+2 |
| | |||||
* | Shorten the code using the err() function. | Hisham | 2016-02-03 | 1 | -18/+11 |
| | |||||
* | Be stricter! | Hisham | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | Avoid crash on huge screens. | Hisham | 2016-02-02 | 1 | -1/+6 |
| | | | | Fix by @Explorer09 (see discussion on #355). | ||||
* | Try to make threads less confusing. | Hisham | 2016-02-02 | 4 | -4/+8 |
| | |||||
* | Initialize default meter modes properly. | Hisham | 2016-02-02 | 1 | -5/+15 |
| | |||||
* | Exit on failure! | Hisham | 2016-02-02 | 1 | -0/+4 |
| | |||||
* | Merge branch 'reuse-comm' | Hisham | 2016-02-02 | 3 | -8/+19 |
|\ | |||||
| * | Reuse comm object if possible, avoid useless repetitions of free+strdup. | Hisham | 2016-02-02 | 3 | -8/+19 |
| | | |||||
* | | Merge branch 'xalloc' | Hisham | 2016-02-02 | 43 | -130/+212 |
|\ \ | |/ |/| | |||||
| * | Check for failure in allocations. | Hisham | 2016-02-02 | 42 | -134/+141 |
| | | |||||
| * | Add allocation tests | Hisham | 2016-01-31 | 2 | -0/+75 |
| | | |||||
* | | Update generated headers. | Hisham | 2016-02-02 | 2 | -1/+4 |
| | | |||||
* | | Add generated header. | Hisham | 2016-01-31 | 1 | -2/+26 |
| | | |||||
* | | Differentiate threads by default. | Hisham | 2016-01-31 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #351 from Explorer09/graph-height | Hisham Muhammad | 2016-01-21 | 2 | -7/+11 |
|\ | | | | | GRAPH_HEIGHT macro and 'dot' variable | ||||
| * | Change variable 'dot' to avoid division by reciprocal. | Explorer09 | 2016-01-21 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Cherry-picked from d56bcd8e0d8d6a177fc2e40db32fc73ea4588684, the experimental graph coloring branch) The variable 'dot' in GraphMeterMode_draw now means "maximum number of dots per value (column) in graph". The old meaning was "amount of value that is to be represented by a dot" and was always a fraction. Due to a limitation in floating point computing, if GRAPH_HEIGHT were not a power of 2, then rounding errors will occur on numbers like (1.0/3). (Currently GRAPH_HEIGHT is 4 and so no precision loss.) 'dot' was used as a divisor, and it's "division by a reciprocal". We change that to simple multiplication. | ||||
| * | New macro GRAPH_HEIGHT for Graph Meter height | Explorer09 | 2016-01-21 | 2 | -7/+11 |
|/ | | | | | | | | (Cherry-picked from e93028d7fa0c5f00b5dc3336fd28abaf905cd572, the experimental graph coloring branch) Currently GRAPH_HEIGHT=4 . This prevents hard-coding the height of the graph meters, and allows user to change it at compile-time. | ||||
* | Merge pull request #349 from Explorer09/clamp-macro | Hisham Muhammad | 2016-01-20 | 14 | -22/+60 |
|\ | | | | | Introduce CLAMP macro. Unify all MAX(l,MIN(h,x)) uses. | ||||
| * | Introduce CLAMP macro. Unify all MIN(MAX(a,b),c) uses. | Explorer09 | 2016-01-15 | 14 | -22/+60 |
|/ | | | | | | | | | | | | | | | | | | | | | | | With the CLAMP macro replacing the combination of MIN and MAX, we will have at least two advantages: 1. It's more obvious semantically. 2. There are no more mixes of confusing uses like MIN(MAX(a,b),c) and MAX(MIN(a,b),c) and MIN(a,MAX(b,c)) appearing everywhere. We unify the 'clamping' with a single macro. Note that the behavior of this CLAMP macro is different from the combination `MAX(low,MIN(x,high))`. * This CLAMP macro expands to two comparisons instead of three from MAX and MIN combination. In theory, this makes the code slightly smaller, in case that (low) or (high) or both are computed at runtime, so that compilers cannot optimize them. (The third comparison will matter if (low)>(high); see below.) * CLAMP has a side effect, that if (low)>(high) it will produce weird results. Unlike MIN & MAX which will force either (low) or (high) to win. No assertion of ((low)<=(high)) is done in this macro, for now. This CLAMP macro is implemented like described in glib <http://developer.gnome.org/glib/stable/glib-Standard-Macros.html> and does not handle weird uses like CLAMP(a++, low++, high--) . | ||||
* | Merge pull request #347 from mklein-de/darwin32+64 | Hisham Muhammad | 2016-01-13 | 3 | -7/+7 |
|\ | | | | | Darwin: replace vm_statistics64_* with vm_statistics_* | ||||
| * | Darwin: replace vm_statistics64_* with vm_statistics_* | Michael Klein | 2016-01-13 | 3 | -7/+7 |
|/ | | | | | | Works with: - Darwin 9.8.0 (OS X 10.5.8) PPC - Darwin 15.2.0 (OS X 10.11.2) Intel | ||||
* | Merge pull request #346 from mklein-de/vikeys | Hisham Muhammad | 2016-01-13 | 1 | -0/+23 |
|\ | | | | | vi keys: translate ALT-h/j/k/l to arrow keys | ||||
| * | vi keys: translate ALT-h/j/k/l to arrow keys | Michael Klein | 2016-01-12 | 1 | -0/+23 |
|/ | |||||
* | refactor *Screen classes, add InfoScreen superclass | Hisham Muhammad | 2016-01-12 | 10 | -407/+421 |
| | |||||
* | Merge branch 'mklein-de-envscreen' | Hisham Muhammad | 2016-01-12 | 12 | -3/+297 |
|\ | |||||
| * | Merge branch 'envscreen' of https://github.com/mklein-de/htop into ↵ | Hisham Muhammad | 2016-01-12 | 12 | -3/+297 |
|/| | | | | | | | mklein-de-envscreen | ||||
| * | drop privileges before reading environment | Michael Klein | 2016-01-06 | 1 | -12/+9 |
| | | |||||
| * | Merge remote-tracking branch 'upstream/master' into envscreen | Michael Klein | 2016-01-06 | 19 | -126/+484 |
| |\ | |||||
| * | | Add Platform_getProcessEnv | Michael Klein | 2015-12-03 | 8 | -47/+109 |
| | | | | | | | | | | | | - currently implemented for darwin and linux | ||||
| * | | 'e' displays environment of current process | Michael Klein | 2015-12-02 | 6 | -2/+239 |
| | | | | | | | | | | | | | | | - uses sysctl(KERN_PROCARGS2) on *BSD - doesn't work on Linux yet | ||||
* | | | Merge branch 'master' of https://github.com/hishamhm/htop | Hisham Muhammad | 2016-01-11 | 6 | -19/+38 |
|\ \ \ | |||||
| * \ \ | Merge pull request #343 from FreedomBen/typo-priority | Hisham Muhammad | 2016-01-06 | 1 | -1/+1 |
| |\ \ \ | | |_|/ | |/| | | Fix typo: prority => priority | ||||
| | * | | Fix typo: prority => priority | Benjamin Porter | 2016-01-06 | 1 | -1/+1 |
| |/ / | |||||
| * | | Merge pull request #315 from mklein-de/suid | Hisham Muhammad | 2016-01-06 | 3 | -1/+20 |
| |\ \ | | | | | | | | | add some security checks when running SUID root | ||||
| | * | | Fix fopen mode in Settings_read() | Michael Klein | 2015-12-09 | 1 | -1/+1 |
| | | | | |||||
| | * | | drop privileges before changing process priority or sending signals | Michael Klein | 2015-12-07 | 2 | -11/+14 |
| | | | | | | | | | | | | | | | | - replaces uid check from d18e9a4895599a479df264a6c7380b8805abb434 | ||||
| | * | | drop privileges during Settings_read()/Settings_write() | Michael Klein | 2015-12-02 | 1 | -1/+13 |
| | | | | |||||
| | * | | add some security checks when running SUID root | Michael Klein | 2015-12-02 | 2 | -6/+12 |
| | |/ | | | | | | | | | | | | | | | | on Darwin, htop needs to run with root privileges to display information about other users processes. This commit makes running htop SUID root a bit more safe. | ||||
| * | | Merge pull request #339 from eworm-de/configure | Hisham Muhammad | 2016-01-06 | 1 | -1/+1 |
| |\ \ | | | | | | | | | use AC_HELP_STRING for proc dir | ||||
| | * | | use AC_HELP_STRING for proc dir | Christian Hesse | 2016-01-05 | 1 | -1/+1 |
| |/ / | |||||
| * | | Merge pull request #338 from mmcco/opl | Hisham Muhammad | 2016-01-04 | 1 | -16/+16 |
| |\ \ | | | | | | | | | Rename variable for consistency | ||||
| | * | | Rename variable for consistency | Michael McConville | 2016-01-04 | 1 | -16/+16 |
| |/ / | | | | | | | | | | Suggested by Hisham. | ||||
* / / | Present IO-Wait as a dot in monochrome. Fixes #345. | Hisham Muhammad | 2016-01-11 | 2 | -2/+2 |
|/ / | | | | | | | Thank you @Explorer09 for the report! | ||||
* | | Merge pull request #337 from eworm-de/help | Hisham Muhammad | 2016-01-04 | 1 | -1/+1 |
|\ \ | | | | | | | align help output | ||||
| * | | align help output | Christian Hesse | 2016-01-04 | 1 | -1/+1 |
| | | | |||||
* | | | Merge branch 'mmcco-freebsd-free' | Hisham Muhammad | 2016-01-04 | 1 | -4/+4 |
|\ \ \ | |||||
| * | | | Merge branch 'freebsd-free' of https://github.com/mmcco/htop into ↵ | Hisham Muhammad | 2016-01-04 | 1 | -4/+4 |
|/| | | | | | | | | | | | | | | | mmcco-freebsd-free | ||||
| * | | | Remove NULL-checks before free() | Michael McConville | 2016-01-03 | 1 | -4/+4 |
| |/ / | | | | | | | | | | These are never necessary when using the standard library. |