summaryrefslogtreecommitdiffstats
path: root/freebsd
Commit message (Collapse)AuthorAgeFilesLines
* Drop unused global ProcessList memory fieldsNathan Scott2020-11-271-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_getBatteryChristian Göttsche2020-11-252-4/+4
| | | | Use percent throughout
* Merge branch 'cleanup-init-done' into masterNathan Scott2020-11-232-6/+19
|\
| * Consistent ordering of function declarations for FreeBSDNathan Scott2020-11-231-2/+2
| |
| * Minor cleanups to platform-specific init and doneNathan Scott2020-11-192-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 usedBenny Baumann2020-11-221-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 requiredBenny Baumann2020-11-221-4/+2
| |
* | Simplify page size related calculationsChristian Göttsche2020-11-211-1/+1
| |
* | Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche2020-11-213-3/+3
| | | | | | | | Closes: #325
* | IWYU update (FreeBSD)Christian Goettsche2020-11-196-19/+33
|/
* Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott2020-11-184-43/+18
| | | | | Consistent with everything else involving platform-specific calls from core htop code.
* Merge branch 'temperature_v2' of cgzones/htopDaniel Lange2020-11-171-0/+1
|\ | | | | | | | | Closes #111, closes #49 Closes #93 - thank you for leading the way @DX37 (Maxim Kurnosenko)!
| * Show CPU temperature in CPU meterChristian Göttsche2020-11-161-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 usageChristian Göttsche2020-11-161-0/+1
|/ | | | Shows the process CPU usage divided by the number of CPU cores
* Introduce spaceship comparison for ProcessesChristian Göttsche2020-11-151-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 @BenBEDaniel Lange2020-11-156-70/+85
|\
| * Embracing branchesBenny Baumann2020-11-023-18/+33
| |
| * Spacing around operatorsBenny Baumann2020-11-025-26/+26
| |
| * Whitespace and indentation issuesBenny Baumann2020-11-022-24/+24
| |
| * Spacing after keywords (if)Benny Baumann2020-11-021-2/+2
| |
* | Split platform dependent parts for file locks screenBenny Baumann2020-11-142-0/+19
|/
* Add compat wrapper for fstatatChristian Göttsche2020-10-291-2/+3
|
* FreeBSD: update ProcessChristian Göttsche2020-10-293-22/+21
|
* FreeBSD: update ProcessListChristian Göttsche2020-10-292-12/+8
|
* FreeBSD: implement Platform_getDiskIO()Christian Goettsche2020-10-292-9/+43
|
* FreeBSD: Platform updateChristian Göttsche2020-10-291-21/+20
|
* FreeBSD: rework tty process columnChristian Goettsche2020-10-294-2/+100
|
* Unify function argument namesChristian Göttsche2020-10-282-14/+14
| | | | | Name first argument of ProcessList_goThroughEntries consistently super Name first argument of ProcessList_new consistently userTable
* Drop duplicate assignmentChristian Göttsche2020-10-271-1/+0
|
* Hold only a const version of Settings in ProcessListChristian Göttsche2020-10-261-1/+1
|
* Hold only a const version of Settings in ProcessChristian Göttsche2020-10-263-4/+4
|
* Mark process parameter of Process_writeField consistently constChristian Göttsche2020-10-262-4/+4
|
* Hold only a const version of the ProcessList in MetersChristian Göttsche2020-10-261-6/+6
|
* Improve handling of no data in Disk and Network IO MetersChristian Göttsche2020-10-262-11/+13
|
* Simplify environment-reading codeRoss Williams2020-10-261-8/+2
| | | | Suggested PR changes, thanks @cgzones
* Add process environment for FreeBSDRoss Williams2020-10-261-3/+25
|
* Drop unused Platform functions Platform_setTasksValuesChristian Göttsche2020-10-222-7/+0
|
* Drop tabs in source indentionsChristian Göttsche2020-10-201-1/+1
|
* Merge branch 'header_pause' of cgzones/htopDaniel Lange2020-10-202-2/+6
|\ | | | | | | Continue to update generic data in paused mode
| * Continue to update generic data in paused modeChristian Göttsche2020-10-192-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_SIZEChristian Göttsche2020-10-191-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 explicitBenny Baumann2020-10-183-13/+30
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Add NetworkIOMeterChristian Göttsche2020-10-162-0/+56
|
* Refactor generating starttime string into Process classChristian Göttsche2020-10-161-7/+1
|
* Mark remaining classes constChristian Göttsche2020-10-132-2/+2
|
* Centralise fault handlingBenny Baumann2020-10-122-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 constChristian Göttsche2020-10-092-3/+3
|
* Some more locations for ARRAYSIZEBenny Baumann2020-10-082-2/+4
|
* Mark Object instances constChristian Göttsche2020-10-072-2/+2
|
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-2/+2
|

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