Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make remaining number literals use uppercase | Benny Baumann | 2020-12-20 | 1 | -1/+1 |
| | |||||
* | Remove duplicate newline in CRT_fatalError calls | Christian Göttsche | 2020-12-19 | 1 | -4/+4 |
| | |||||
* | Unhardcode tick-to-ms conversion | Alexander Momchilov | 2020-12-19 | 5 | -16/+36 |
| | | | | | | | | | Division by 100000.0 worked because `sysconf(_SC_CLK_TCK)` happened to be 100. By unhardcoding: 1) It becomes more clear what this 100000.0 figure comes from. 2) It protects against bugs in the case `sysconf(_SC_CLK_TCK)` ever changes. | ||||
* | Mark Platform_defaultFields const | Christian Göttsche | 2020-12-19 | 2 | -2/+2 |
| | |||||
* | Merge Process_pidColumns into Process_fields and rework auto-fit for ↵ | Christian Göttsche | 2020-12-19 | 4 | -20/+8 |
| | | | | PID-like columns | ||||
* | Rework enum ProcessField | Christian Göttsche | 2020-12-19 | 5 | -15/+20 |
| | | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array | ||||
* | Split boilerplate and platform-independent field comparison | Benny Baumann | 2020-12-19 | 1 | -1/+1 |
| | | | | | | | | This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting. | ||||
* | Invert Process_compare resolution so that superclass matches run first | Hisham Muhammad | 2020-12-19 | 1 | -14/+7 |
| | | | | | | | | | | * This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file. | ||||
* | Merge branch 'fix_mach_timebase' of benbe/htop | Daniel Lange | 2020-12-13 | 3 | -15/+38 |
|\ | |||||
| * | Correct timebase for non-x86 CPUs on Darwin | Benny Baumann | 2020-12-13 | 3 | -2/+22 |
| | | | | | | | | Fixes: #368 | ||||
| * | Sort include in Darwin platform headers | Benny Baumann | 2020-12-13 | 1 | -14/+16 |
| | | |||||
* | | Add column in darwin to indicate whether the the process is running under ↵ | Dániel Bakai | 2020-12-13 | 4 | -13/+61 |
| | | | | | | | | translation | ||||
* | | Move Process_fields from darwin/Platform to darwin/DarwinProcess | Dániel Bakai | 2020-12-13 | 4 | -31/+31 |
|/ | |||||
* | Cull the definitions of pageSize and pageSizeKB from CRT.c | Nathan Scott | 2020-12-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | By storing the per-process m_resident and m_virt values in the form htop wants to display them in (KB, not pages), we no longer need to have definitions of pageSize and pageSizeKB in the common CRT code. These variables were never really CRT (i.e. display) related in the first place. It turns out the darwin platform code doesn't need to use these at all (the process values are extracted from the kernel in bytes not pages) and the other platforms can each use their own local pagesize variables, in more appropriate locations. Some platforms were actually already doing this, so this change is removing duplication of logic and variables there. | ||||
* | Unify naming of first argument of Platform_getBattery | Christian Göttsche | 2020-11-25 | 1 | -3/+3 |
| | | | | Use percent throughout | ||||
* | DarwinProcessList: retry getting list of all processes on ENOMEM | Christian Göttsche | 2020-11-23 | 1 | -17/+15 |
| | | | | | | | | | | | The process count might change between the two sysctl() calls getting the size and getting the data. Retry (3 times) in case the data-retrieval sysctl() call fails with ENOMEM. see http://mirror.informatimago.com/next/developer.apple.com/qa/qa2001/qa1123.html Related: #118 | ||||
* | Merge branch 'cleanup-init-done' into master | Nathan Scott | 2020-11-23 | 2 | -6/+18 |
|\ | |||||
| * | Minor cleanups to platform-specific init and done | Nathan Scott | 2020-11-19 | 2 | -6/+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. | ||||
* | | Rename virtual memory column from M_SIZE to M_VIRT | Christian Göttsche | 2020-11-21 | 2 | -4/+4 |
|/ | | | | Closes: #325 | ||||
* | Merge individual Battery.[ch] files into Platform.[ch] | Nathan Scott | 2020-11-18 | 4 | -81/+70 |
| | | | | | Consistent with everything else involving platform-specific calls from core htop code. | ||||
* | DarwinProcessList: mark local functions static and sort includes | Christian Göttsche | 2020-11-17 | 2 | -39/+22 |
| | |||||
* | DarwinProcess: mark local function static and sort includes | Christian Göttsche | 2020-11-17 | 2 | -12/+10 |
| | |||||
* | 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. | ||||
* | Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE | Daniel Lange | 2020-11-15 | 7 | -163/+178 |
|\ | |||||
| * | Embracing branches | Benny Baumann | 2020-11-02 | 1 | -3/+6 |
| | | |||||
| * | Spacing around operators | Benny Baumann | 2020-11-02 | 6 | -38/+38 |
| | | |||||
| * | Whitespace and indentation issues | Benny Baumann | 2020-11-02 | 4 | -107/+119 |
| | | |||||
| * | Spacing after keywords (for) | Benny Baumann | 2020-11-02 | 3 | -5/+5 |
| | | |||||
| * | Spacing after keywords (if) | Benny Baumann | 2020-11-02 | 4 | -14/+14 |
| | | |||||
| * | Spacing after keywords (while) | Benny Baumann | 2020-11-02 | 1 | -2/+2 |
| | | |||||
* | | Split platform dependent parts for file locks screen | Benny Baumann | 2020-11-14 | 2 | -3/+24 |
|/ | |||||
* | FreeBSD: implement Platform_getDiskIO() | Christian Goettsche | 2020-10-29 | 2 | -7/+4 |
| | |||||
* | Drop always true condition | Christian Göttsche | 2020-10-27 | 1 | -40/+38 |
| | |||||
* | Hold only a const version of Settings in Process | Christian Göttsche | 2020-10-26 | 3 | -4/+4 |
| | |||||
* | Hold only a const version of the ProcessList in Meters | Christian Göttsche | 2020-10-26 | 1 | -9/+9 |
| | |||||
* | Improve handling of no data in Disk and Network IO Meters | Christian Göttsche | 2020-10-26 | 2 | -4/+10 |
| | |||||
* | Drop tabs in source indentions | Christian Göttsche | 2020-10-20 | 1 | -3/+3 |
| | |||||
* | 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 | -2/+4 |
|/ | | | | | | man:sysconf(3) states: The values obtained from these functions are system configuration constants. They do not change during the lifetime of a process. | ||||
* | Add NetworkIOMeter | Christian Göttsche | 2020-10-16 | 2 | -0/+16 |
| | |||||
* | Refactor generating starttime string into Process class | Christian Göttsche | 2020-10-16 | 3 | -17/+6 |
| | |||||
* | Mark remaining classes const | Christian Göttsche | 2020-10-13 | 2 | -2/+2 |
| | |||||
* | Centralise fault handling | Benny Baumann | 2020-10-12 | 2 | -49/+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 | -2/+2 |
| | |||||
* | Some more locations for ARRAYSIZE | Benny Baumann | 2020-10-08 | 1 | -1/+2 |
| | |||||
* | 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 | -1/+1 |
| | |||||
* | Merge branch 'update-license-and-copyright-info' | Nathan Scott | 2020-10-06 | 8 | -8/+8 |
|\ | |||||
| * | Update License consistently to GPLv2 as per COPYING file | Daniel Lange | 2020-10-05 | 8 | -8/+8 |
| | |