summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Final touches to ChangeLog2.0.0Hisham2016-02-101-0/+4
|
* Support -1 as tpgidHisham2016-02-101-2/+2
|
* Shorten the code using the err() function.Hisham2016-02-031-18/+11
|
* Be stricter!Hisham2016-02-031-1/+1
|
* Avoid crash on huge screens.Hisham2016-02-021-1/+6
| | | | Fix by @Explorer09 (see discussion on #355).
* Try to make threads less confusing.Hisham2016-02-024-4/+8
|
* Initialize default meter modes properly.Hisham2016-02-021-5/+15
|
* Exit on failure!Hisham2016-02-021-0/+4
|
* Merge branch 'reuse-comm'Hisham2016-02-023-8/+19
|\
| * Reuse comm object if possible, avoid useless repetitions of free+strdup.Hisham2016-02-023-8/+19
| |
* | Merge branch 'xalloc'Hisham2016-02-0243-130/+212
|\ \ | |/ |/|
| * Check for failure in allocations.Hisham2016-02-0242-134/+141
| |
| * Add allocation testsHisham2016-01-312-0/+75
| |
* | Update generated headers.Hisham2016-02-022-1/+4
| |
* | Add generated header.Hisham2016-01-311-2/+26
| |
* | Differentiate threads by default.Hisham2016-01-311-1/+2
|/
* Merge pull request #351 from Explorer09/graph-heightHisham Muhammad2016-01-212-7/+11
|\ | | | | GRAPH_HEIGHT macro and 'dot' variable
| * Change variable 'dot' to avoid division by reciprocal.Explorer092016-01-211-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 heightExplorer092016-01-212-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-macroHisham Muhammad2016-01-2014-22/+60
|\ | | | | Introduce CLAMP macro. Unify all MAX(l,MIN(h,x)) uses.
| * Introduce CLAMP macro. Unify all MIN(MAX(a,b),c) uses.Explorer092016-01-1514-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+64Hisham Muhammad2016-01-133-7/+7
|\ | | | | Darwin: replace vm_statistics64_* with vm_statistics_*
| * Darwin: replace vm_statistics64_* with vm_statistics_*Michael Klein2016-01-133-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/vikeysHisham Muhammad2016-01-131-0/+23
|\ | | | | vi keys: translate ALT-h/j/k/l to arrow keys
| * vi keys: translate ALT-h/j/k/l to arrow keysMichael Klein2016-01-121-0/+23
|/
* refactor *Screen classes, add InfoScreen superclassHisham Muhammad2016-01-1210-407/+421
|
* Merge branch 'mklein-de-envscreen'Hisham Muhammad2016-01-1212-3/+297
|\
| * Merge branch 'envscreen' of https://github.com/mklein-de/htop into ↵Hisham Muhammad2016-01-1212-3/+297
|/| | | | | | | mklein-de-envscreen
| * drop privileges before reading environmentMichael Klein2016-01-061-12/+9
| |
| * Merge remote-tracking branch 'upstream/master' into envscreenMichael Klein2016-01-0619-126/+484
| |\
| * | Add Platform_getProcessEnvMichael Klein2015-12-038-47/+109
| | | | | | | | | | | | - currently implemented for darwin and linux
| * | 'e' displays environment of current processMichael Klein2015-12-026-2/+239
| | | | | | | | | | | | | | | - uses sysctl(KERN_PROCARGS2) on *BSD - doesn't work on Linux yet
* | | Merge branch 'master' of https://github.com/hishamhm/htopHisham Muhammad2016-01-116-19/+38
|\ \ \
| * \ \ Merge pull request #343 from FreedomBen/typo-priorityHisham Muhammad2016-01-061-1/+1
| |\ \ \ | | |_|/ | |/| | Fix typo: prority => priority
| | * | Fix typo: prority => priorityBenjamin Porter2016-01-061-1/+1
| |/ /
| * | Merge pull request #315 from mklein-de/suidHisham Muhammad2016-01-063-1/+20
| |\ \ | | | | | | | | add some security checks when running SUID root
| | * | Fix fopen mode in Settings_read()Michael Klein2015-12-091-1/+1
| | | |
| | * | drop privileges before changing process priority or sending signalsMichael Klein2015-12-072-11/+14
| | | | | | | | | | | | | | | | - replaces uid check from d18e9a4895599a479df264a6c7380b8805abb434
| | * | drop privileges during Settings_read()/Settings_write()Michael Klein2015-12-021-1/+13
| | | |
| | * | add some security checks when running SUID rootMichael Klein2015-12-022-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/configureHisham Muhammad2016-01-061-1/+1
| |\ \ | | | | | | | | use AC_HELP_STRING for proc dir
| | * | use AC_HELP_STRING for proc dirChristian Hesse2016-01-051-1/+1
| |/ /
| * | Merge pull request #338 from mmcco/oplHisham Muhammad2016-01-041-16/+16
| |\ \ | | | | | | | | Rename variable for consistency
| | * | Rename variable for consistencyMichael McConville2016-01-041-16/+16
| |/ / | | | | | | | | | Suggested by Hisham.
* / / Present IO-Wait as a dot in monochrome. Fixes #345.Hisham Muhammad2016-01-112-2/+2
|/ / | | | | | | Thank you @Explorer09 for the report!
* | Merge pull request #337 from eworm-de/helpHisham Muhammad2016-01-041-1/+1
|\ \ | | | | | | align help output
| * | align help outputChristian Hesse2016-01-041-1/+1
| | |
* | | Merge branch 'mmcco-freebsd-free'Hisham Muhammad2016-01-041-4/+4
|\ \ \
| * | | Merge branch 'freebsd-free' of https://github.com/mmcco/htop into ↵Hisham Muhammad2016-01-041-4/+4
|/| | | | | | | | | | | | | | | mmcco-freebsd-free
| * | | Remove NULL-checks before free()Michael McConville2016-01-031-4/+4
| |/ / | | | | | | | | | These are never necessary when using the standard library.

© 2014-2024 Faster IT GmbH | imprint | privacy policy