summaryrefslogtreecommitdiffstats
path: root/FileDescriptorMeter.c
Commit message (Collapse)AuthorAgeFilesLines
* Update includes based on IWYUBenny Baumann2023-12-261-2/+0
|
* Add includes for config.h as per the discussion in PR #1337Daniel Lange2023-12-261-0/+2
| | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us.
* Replace isnan() with better comparisons (isgreater(), etc.)Explorer092023-08-181-5/+6
| | | | | | | | | | | | | | | | | | The standard isnan() function is defined to never throw FP exceptions even when the argument is a "signaling" NaN. This makes isnan() more expensive than (x != x) expression unless the compiler flag '-fno-signaling-nans' is given. Introduce functions isNaN(), isNonnegative(), isPositive(), sumPositiveValues() and compareRealNumbers(), and replace isnan() in htop's codebase with the new functions. These functions utilize isgreater() and isgreaterequal() comparisons, which do not throw FP exceptions on "quiet" NaNs, which htop uses extensively. With isnan() removed, there is no need to suppress the warning '-Wno-c11-extensions' in FreeBSD. Remove the code from 'configure.ac'. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Minor code formatting consistency fixesBenny Baumann2023-04-111-5/+5
|
* Use automagic scaling for bar mode of the File Descriptor meterBenny Baumann2023-02-191-5/+42
|
* Create new File Descriptor meterBenny Baumann2023-02-191-0/+80

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