Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Drop unused global ProcessList memory fields | Nathan Scott | 2020-11-27 | 1 | -8/+0 |
| | | | | | | | | | | The global ProcessList structure contains a couple of unused fields. 'sharedMem' has never been used by any Meter, since its not been anything other than zero in Linux /proc/meminfo for many, many years. The freeMem field is only used in the usedMem calculation, so it can reside on the stack like some other memory variables used within-calculations-only and not exposed to the user via a Meter. | ||||
* | Unify naming of first argument of Platform_getBattery | Christian Göttsche | 2020-11-25 | 2 | -4/+4 |
| | | | | Use percent throughout | ||||
* | Merge branch 'cleanup-init-done' into master | Nathan Scott | 2020-11-23 | 2 | -6/+19 |
|\ | |||||
| * | Consistent ordering of function declarations for FreeBSD | Nathan Scott | 2020-11-23 | 1 | -2/+2 |
| | | |||||
| * | Minor cleanups to platform-specific init and done | Nathan Scott | 2020-11-19 | 2 | -5/+18 |
| | | | | | | | | | | | | | | Move platform-specific code out of the htop.c main function and into the platform sub-directories - primarily this is the Linux procfs path check and sensors setup/teardown; not needed on any other platforms. No functional changes here. | ||||
* | | Simplify code flow by inlining declarations where they are used | Benny Baumann | 2020-11-22 | 1 | -14/+7 |
| | | | | | | | | Note that xStrdup always returns non-NULL, thus the one error case cannot be reached. | ||||
* | | No need to check for change when no action is required | Benny Baumann | 2020-11-22 | 1 | -4/+2 |
| | | |||||
* | | Simplify page size related calculations | Christian Göttsche | 2020-11-21 | 1 | -1/+1 |
| | | |||||
* | | Rename virtual memory column from M_SIZE to M_VIRT | Christian Göttsche | 2020-11-21 | 3 | -3/+3 |
| | | | | | | | | Closes: #325 | ||||
* | | IWYU update (FreeBSD) | Christian Goettsche | 2020-11-19 | 6 | -19/+33 |
|/ | |||||
* | Merge individual Battery.[ch] files into Platform.[ch] | Nathan Scott | 2020-11-18 | 4 | -43/+18 |
| | | | | | Consistent with everything else involving platform-specific calls from core htop code. | ||||
* | Merge branch 'temperature_v2' of cgzones/htop | Daniel Lange | 2020-11-17 | 1 | -0/+1 |
|\ | | | | | | | | | Closes #111, closes #49 Closes #93 - thank you for leading the way @DX37 (Maxim Kurnosenko)! | ||||
| * | Show CPU temperature in CPU meter | Christian Göttsche | 2020-11-16 | 1 | -0/+1 |
| | | | | | | | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter. | ||||
* | | Add process column for normalized CPU usage | Christian Göttsche | 2020-11-16 | 1 | -0/+1 |
|/ | | | | Shows the process CPU usage divided by the number of CPU cores | ||||
* | Introduce spaceship comparison for Processes | Christian Göttsche | 2020-11-15 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | If currently two unsigned values are compared via `a - b`, in the case b is actually bigger than a, the result will not be an negative number (as -1 is expected) but a huge positive number as the subtraction is an unsigned subtraction. Avoid over-/underflow affected operations; use comparisons. Modern compilers will generate sane code, like: xor eax, eax cmp rdi, rsi seta al sbb eax, 0 ret | ||||
* | Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE | Daniel Lange | 2020-11-15 | 6 | -70/+85 |
|\ | |||||
| * | Embracing branches | Benny Baumann | 2020-11-02 | 3 | -18/+33 |
| | | |||||
| * | Spacing around operators | Benny Baumann | 2020-11-02 | 5 | -26/+26 |
| | | |||||
| * | Whitespace and indentation issues | Benny Baumann | 2020-11-02 | 2 | -24/+24 |
| | | |||||
| * | Spacing after keywords (if) | Benny Baumann | 2020-11-02 | 1 | -2/+2 |
| | | |||||
* | | Split platform dependent parts for file locks screen | Benny Baumann | 2020-11-14 | 2 | -0/+19 |
|/ | |||||
* | Add compat wrapper for fstatat | Christian Göttsche | 2020-10-29 | 1 | -2/+3 |
| | |||||
* | FreeBSD: update Process | Christian Göttsche | 2020-10-29 | 3 | -22/+21 |
| | |||||
* | FreeBSD: update ProcessList | Christian Göttsche | 2020-10-29 | 2 | -12/+8 |
| | |||||
* | FreeBSD: implement Platform_getDiskIO() | Christian Goettsche | 2020-10-29 | 2 | -9/+43 |
| | |||||
* | FreeBSD: Platform update | Christian Göttsche | 2020-10-29 | 1 | -21/+20 |
| | |||||
* | FreeBSD: rework tty process column | Christian Goettsche | 2020-10-29 | 4 | -2/+100 |
| | |||||
* | Unify function argument names | Christian Göttsche | 2020-10-28 | 2 | -14/+14 |
| | | | | | Name first argument of ProcessList_goThroughEntries consistently super Name first argument of ProcessList_new consistently userTable | ||||
* | Drop duplicate assignment | Christian Göttsche | 2020-10-27 | 1 | -1/+0 |
| | |||||
* | Hold only a const version of Settings in ProcessList | Christian Göttsche | 2020-10-26 | 1 | -1/+1 |
| | |||||
* | Hold only a const version of Settings in Process | Christian Göttsche | 2020-10-26 | 3 | -4/+4 |
| | |||||
* | Mark process parameter of Process_writeField consistently const | Christian Göttsche | 2020-10-26 | 2 | -4/+4 |
| | |||||
* | Hold only a const version of the ProcessList in Meters | Christian Göttsche | 2020-10-26 | 1 | -6/+6 |
| | |||||
* | Improve handling of no data in Disk and Network IO Meters | Christian Göttsche | 2020-10-26 | 2 | -11/+13 |
| | |||||
* | Simplify environment-reading code | Ross Williams | 2020-10-26 | 1 | -8/+2 |
| | | | | Suggested PR changes, thanks @cgzones | ||||
* | Add process environment for FreeBSD | Ross Williams | 2020-10-26 | 1 | -3/+25 |
| | |||||
* | Drop unused Platform functions Platform_setTasksValues | Christian Göttsche | 2020-10-22 | 2 | -7/+0 |
| | |||||
* | Drop tabs in source indentions | Christian Göttsche | 2020-10-20 | 1 | -1/+1 |
| | |||||
* | Merge branch 'header_pause' of cgzones/htop | Daniel Lange | 2020-10-20 | 2 | -2/+6 |
|\ | | | | | | | Continue to update generic data in paused mode | ||||
| * | Continue to update generic data in paused mode | Christian Göttsche | 2020-10-19 | 2 | -2/+6 |
| | | | | | | | | | | | | | | | | | | Generic data, as CPU and memory usage, are used by Meters. In paused mode they would stop receiving updates and especially Graph Meters would stop showing continuous data. Improves: #214 Closes: #253 | ||||
* | | Cache PAGE_SIZE | Christian Göttsche | 2020-10-19 | 1 | -4/+5 |
|/ | | | | | | man:sysconf(3) states: The values obtained from these functions are system configuration constants. They do not change during the lifetime of a process. | ||||
* | Make all required includes explicit | Benny Baumann | 2020-10-18 | 3 | -13/+30 |
| | | | | Information as seen by IWYU 0.12 + clang 9 on Linux | ||||
* | Add NetworkIOMeter | Christian Göttsche | 2020-10-16 | 2 | -0/+56 |
| | |||||
* | Refactor generating starttime string into Process class | Christian Göttsche | 2020-10-16 | 1 | -7/+1 |
| | |||||
* | Mark remaining classes const | Christian Göttsche | 2020-10-13 | 2 | -2/+2 |
| | |||||
* | Centralise fault handling | Benny Baumann | 2020-10-12 | 2 | -35/+0 |
| | | | | This should be done as all platforms essentially did the same anyway and there was nothing platform specific. | ||||
* | Mark process argument of Process_isThread const | Christian Göttsche | 2020-10-09 | 2 | -3/+3 |
| | |||||
* | Some more locations for ARRAYSIZE | Benny Baumann | 2020-10-08 | 2 | -2/+4 |
| | |||||
* | Mark Object instances const | Christian Göttsche | 2020-10-07 | 2 | -2/+2 |
| | |||||
* | Mark Object classes and Object class fields const | Christian Göttsche | 2020-10-07 | 1 | -2/+2 |
| |