summaryrefslogtreecommitdiffstats
path: root/unsupported/Platform.c
Commit message (Collapse)AuthorAgeFilesLines
* Correct pid_t type return from Platform_getMaxPid functionNathan Scott2023-09-041-2/+2
| | | | | | | Coverity scanning shows we end up passing an integer into the Row_setPidColumnWidth routine which requires a pid_t - update each platform to return the correct type (and never return -1 as a failure code, this was being ignored).
* Implement File Descriptor Meter support for the Unsupported (demo platform)Benny Baumann2023-02-191-0/+7
|
* Use strict function prototypes also for defintionsChristian Göttsche2023-02-041-2/+2
| | | | | | | freebsd/Platform.c:151:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int Platform_getUptime() { ^ void
* Clean out Platform_getInodeFilenameнаб2023-01-081-6/+0
| | | | | | It's an artefact of the previous implementation of Platform_getProcessLocks for Linux, and is never used; there's no reason for it to have ever been exported
* Use correct command field as default fieldChristian Göttsche2021-12-171-1/+1
| | | | | The default htop command process field has the enum identifier `COMM` but the name `Command` (`COMM` is the field name for /proc/<PID>/comm).
* Introduce screen tabsHisham Muhammad2021-12-071-2/+10
| | | | This is a forward port (by nathans) of Hisham's original code.
* Early program termination only from main()Volodymyr Vasiutyk2021-10-311-1/+2
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Unsupported: update platformChristian Göttsche2021-08-241-5/+0
|
* Add combined memory and swap meterChristian Göttsche2021-08-171-0/+2
| | | | Closes: #699
* Code indentationBenny Baumann2021-07-151-6/+6
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-1/+1
|
* Use unsigned types for CPU counts and associated variablesChristian Göttsche2021-03-191-1/+1
|
* Separate display from sampling in SysArch and Hostname MetersNathan Scott2021-03-041-0/+10
| | | | | | | | | Several of our newer meters have merged coding concerns in terms of extracting values and displaying those values. This commit rectifies that for the SysArch and Hostname meters, allowing use of this code with alternative front/back ends. The SysArch code is also refined to detect whether the platform has an os-release file at all and/or the sys/utsname.h header via configure.ac.
* Fix integer sizing issues in the NetworkIO MeterNathan Scott2021-03-011-8/+2
| | | | | | | | | On Linux kernels the size of the values exported for network device bytes and packets has used a 64 bit integer for quite some time (2.6+ IIRC). Make the procfs value extraction use correct types and change internal types used to rate convert these counters (within the NetworkIO Meter) 64 bit integers, where appropriate.
* [#480] SysArchMeter to view kernel/arch infoahgamut2021-01-311-0/+2
| | | | | | | At start, SysArchMeter calls the uname function to obtain the kernel version and architecture. If available, the distro version is obtained by calling lsb_release. The obtained values are stored in static variables and used when updating the meter.
* Unsupported: pass compilationChristian Göttsche2021-01-291-6/+11
|
* Mark Platform_defaultFields constChristian Göttsche2020-12-191-1/+1
|
* Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche2020-12-191-4/+0
| | | | PID-like columns
* Rework enum ProcessFieldChristian Göttsche2020-12-191-2/+0
| | | | | | 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
* Move Process_fields from unsupported/Platform to unsupported/UnsupportedProcessDániel Bakai2020-12-131-29/+0
|
* Unify naming of first argument of Platform_getBatteryChristian Göttsche2020-11-251-2/+2
| | | | Use percent throughout
* Merge branch 'cleanup-init-done' into masterNathan Scott2020-11-231-6/+13
|\
| * Minor cleanups to platform-specific init and doneNathan Scott2020-11-191-6/+13
| | | | | | | | | | | | | | 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_VIRTChristian Göttsche2020-11-211-2/+2
|/ | | | Closes: #325
* Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott2020-11-181-0/+5
| | | | | Consistent with everything else involving platform-specific calls from core htop code.
* 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.
* Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange2020-11-151-4/+4
|\
| * Spacing around operatorsBenny Baumann2020-11-021-4/+4
| |
* | Split platform dependent parts for file locks screenBenny Baumann2020-11-141-0/+11
|/
* FreeBSD: implement Platform_getDiskIO()Christian Goettsche2020-10-291-4/+2
|
* Improve handling of no data in Disk and Network IO MetersChristian Göttsche2020-10-261-2/+6
|
* Add NetworkIOMeterChristian Göttsche2020-10-161-0/+10
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-1/+1
|
* Some more locations for ARRAYSIZEBenny Baumann2020-10-081-1/+2
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Merge branch 'update-license-and-copyright-info'Nathan Scott2020-10-061-1/+1
|\
| * Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
| |
* | Add a date and datetime meter (#159)Michael F. Schönitzer2020-10-051-0/+4
|/ | | | | | Add a date meter and sort header and source files in Makefile Change the lists of header and source files sorted alphabetical and one file per line. This way diffs become better readable and merges easier.
* Add DiskIOMeter for IO read/write usageChristian Göttsche2020-10-031-0/+4
|
* CPUMeter: add octuple-column CPU meters.multi2020-09-281-0/+3
| | | | | | | This is a straightforward extension of the existing multi-column CPU meter code, which now allows for up CPU meters to be displayed in up to 16 columns. This also adds the meter declarations to all the platform-specific code.
* Add missing 4-column CPU meters to non-Linux platforms.multi2020-09-281-0/+3
|
* Update CPU freq display to use NAN on errorBenny Baumann2020-09-241-1/+3
|
* Axe automated header generation.Zev Weiss2020-09-031-6/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Merge branch 'hishamhm-pull-932'Nathan Scott2020-08-201-1/+4
|\
| * Show N/A on unsupported platforms instead of 0KHzArnavion2019-08-101-1/+4
| |
* | Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵Daniel Lange2018-10-071-1/+1
|/ | | | | | alignment Issue Github #841, Debian bug #910492
* Issue #502 fix SID colunm header widthKamyar Rasta2017-02-051-1/+1
|
* Issue #502 update Session ID columnKamyar Rasta2017-02-011-1/+1
|
* Interpret TTY_NR column on Linux,Hisham2016-10-011-1/+1
| | | | | translate dev_t to major:minor on other platforms. Closes #316.

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