summaryrefslogtreecommitdiffstats
path: root/darwin/Platform.c
AgeCommit message (Collapse)Author
2020-12-19Unhardcode tick-to-ms conversionAlexander Momchilov
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.
2020-12-19Mark Platform_defaultFields constChristian Göttsche
2020-12-19Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche
PID-like columns
2020-12-19Rework enum ProcessFieldChristian Göttsche
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
2020-12-13Merge branch 'fix_mach_timebase' of benbe/htopDaniel Lange
2020-12-13Add column in darwin to indicate whether the the process is running under ↵Dániel Bakai
translation
2020-12-13Move Process_fields from darwin/Platform to darwin/DarwinProcessDániel Bakai
2020-12-13Correct timebase for non-x86 CPUs on DarwinBenny Baumann
Fixes: #368
2020-12-13Sort include in Darwin platform headersBenny Baumann
2020-11-25Unify naming of first argument of Platform_getBatteryChristian Göttsche
Use percent throughout
2020-11-23Merge branch 'cleanup-init-done' into masterNathan Scott
2020-11-21Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche
Closes: #325
2020-11-19Minor cleanups to platform-specific init and doneNathan Scott
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.
2020-11-18Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott
Consistent with everything else involving platform-specific calls from core htop code.
2020-11-16Show CPU temperature in CPU meterChristian Göttsche
Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
2020-11-15Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange
2020-11-14Split platform dependent parts for file locks screenBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-11-02Whitespace and indentation issuesBenny Baumann
2020-11-02Spacing after keywords (for)Benny Baumann
2020-11-02Spacing after keywords (if)Benny Baumann
2020-11-02Spacing after keywords (while)Benny Baumann
2020-10-29FreeBSD: implement Platform_getDiskIO()Christian Goettsche
2020-10-26Hold only a const version of the ProcessList in MetersChristian Göttsche
2020-10-26Improve handling of no data in Disk and Network IO MetersChristian Göttsche
2020-10-16Add NetworkIOMeterChristian Göttsche
2020-10-08Some more locations for ARRAYSIZEBenny Baumann
2020-10-07Mark Object instances constChristian Göttsche
2020-10-07Mark Object classes and Object class fields constChristian Göttsche
2020-10-06Merge branch 'update-license-and-copyright-info'Nathan Scott
2020-10-05Add a date and datetime meter (#159)Michael F. Schönitzer
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.
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-10-03Add DiskIOMeter for IO read/write usageChristian Göttsche
2020-09-28CPUMeter: add octuple-column CPU meters.multi
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.
2020-09-28Add missing 4-column CPU meters to non-Linux platforms.multi
2020-09-24Update CPU freq display to use NAN on errorBenny Baumann
2020-09-18Fail travis CI on compiler warningsChristian Göttsche
2020-09-09Consolidate repeated macro definitions into one headerNathan Scott
The MIN, MAX, CLAMP, MINIMUM, and MAXIMUM macros appear throughout the codebase with many re-definitions. Make a single copy of each in a common header file, and use the BSD variants of MINIMUM/MAXIMUM due to conflicts in the system <sys/param.h> headers.
2020-09-03Axe automated header generation.Zev Weiss
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.
2020-08-20Merge branch 'hishamhm-pull-920'3.0.0rc1Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-932'Nathan Scott
2019-09-03Support for ZFS Compressed ARC statisticsRoss Williams
2019-09-03Refactor openzfs_sysctl_init() and ZfsArcMeter...Ross Williams
openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c.
2019-08-10Show N/A on unsupported platforms instead of 0KHzArnavion
2019-07-07Refactor common OpenZFS sysctl accessRoss Williams
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
2019-07-07ZFS arcstats for Darwin (macOS / OS X)Ross Williams
2018-10-07Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵Daniel Lange
alignment Issue Github #841, Debian bug #910492
2017-02-05Issue #502 fix SID colunm header widthKamyar Rasta
2017-02-01Issue #502 update Session ID columnKamyar Rasta
2016-10-01Interpret TTY_NR column on Linux,Hisham
translate dev_t to major:minor on other platforms. Closes #316.