Nathan Scott
c75c5ef9c6
Minor cleanups to platform-specific init and done
...
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-19 12:32:07 +11:00
Nathan Scott
ea9622b8c9
Merge individual Battery.[ch] files into Platform.[ch]
...
Consistent with everything else involving platform-specific
calls from core htop code.
2020-11-18 10:17:33 +11:00
Christian Göttsche
1b225cd7a0
Show CPU temperature in CPU meter
...
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
2020-11-16 16:38:54 +01:00
Daniel Lange
bb908f3dc4
Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE
2020-11-15 14:33:09 +01:00
Benny Baumann
18763051a2
Split platform dependent parts for file locks screen
2020-11-14 15:51:26 +01:00
Benny Baumann
45869513bf
Embracing branches
2020-11-02 22:15:01 +01:00
Benny Baumann
61e14d4bb2
Spacing around operators
2020-11-02 22:15:01 +01:00
Benny Baumann
b23f8235e2
Whitespace and indentation issues
2020-11-02 22:15:01 +01:00
Christian Goettsche
c2fdfd99eb
FreeBSD: implement Platform_getDiskIO()
2020-10-29 22:21:42 +01:00
Christian Göttsche
f757810f48
Improve handling of no data in Disk and Network IO Meters
2020-10-26 19:17:14 +01:00
Christian Göttsche
96e2a4259e
Continue to update generic data in paused mode
...
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
2020-10-19 14:45:39 +02:00
Christian Göttsche
7cd093ce95
Add NetworkIOMeter
2020-10-16 20:00:14 +02:00
Christian Göttsche
a63cfc8b7c
Refactor generating starttime string into Process class
2020-10-16 19:23:40 +02:00
Benny Baumann
601480003f
Centralise fault handling
...
This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
2020-10-12 13:06:12 +02:00
Christian Göttsche
41eea8a355
Mark process argument of Process_isThread const
2020-10-09 10:18:40 +02:00
Benny Baumann
4a78f4bb92
Some more locations for ARRAYSIZE
2020-10-08 15:37:03 +02:00
Christian Göttsche
ba282cfe19
Mark Object instances const
2020-10-07 13:01:53 +02:00
Nathan Scott
e9fa290019
Merge branch 'update-license-and-copyright-info'
2020-10-06 10:27:38 +11:00
Michael F. Schönitzer
d93cac12be
Add a date and datetime meter ( #159 )
...
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-05 13:52:58 +02:00
Daniel Lange
079c2abf8e
Update License consistently to GPLv2 as per COPYING file
2020-10-05 10:13:12 +02:00
Christian Göttsche
e518459981
Add DiskIOMeter for IO read/write usage
2020-10-03 19:01:38 +02:00
multi
9ee72568dc
CPUMeter: add octuple-column CPU meters.
...
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-28 14:35:35 +02:00
multi
491bf98b90
Add missing 4-column CPU meters to non-Linux platforms.
2020-09-28 14:35:35 +02:00
Christian Göttsche
4e282eb845
Add -Wmissing-prototypes compiler warning
2020-09-25 17:20:35 +02:00
Benny Baumann
3c65d78d77
Update CPU freq display to use NAN on error
2020-09-24 18:06:36 +02:00
Benny Baumann
47e2cefe02
Update battery API to use NAN on error
2020-09-24 18:06:36 +02:00
Christian Göttsche
e719a85994
Mark noreturn functions
2020-09-18 12:28:40 +02:00
Christian Göttsche
c3952e7c20
Use strict function prototypes
...
int foo(); declares a function taking any number of arguments.
2020-09-18 12:28:40 +02:00
Nathan Scott
4597332959
Switch variable/field naming from WhiteList to MatchList
2020-09-09 19:38:15 +10:00
Nathan Scott
8ec5d4a3a0
Further, minor cleanups to headers post-MakeHeaders
...
Remove leftover empty ifdef/endif pairs, whitespace.
The generated htop.h file was also unused - removed.
2020-09-08 17:33:50 +10:00
Zev Weiss
a1a027b9bd
Axe automated header generation.
...
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-09-03 11:58:58 -05:00
Christian Göttsche
b92f62f912
Remove trailing whitespaces
2020-08-21 10:37:33 +02:00
Nathan Scott
6b443c5da9
Merge branch 'hishamhm-pull-932'
2020-08-20 14:47:07 +10:00
Nathan Scott
a82fd262d7
Merge branch 'hishamhm-pull-960'
2020-08-20 14:19:53 +10:00
Daniel Flanagan
dd33444f7e
Clean up existing whitespace
2019-10-31 11:39:12 -05:00
Arnavion
909bb86f05
Show N/A on unsupported platforms instead of 0KHz
2019-08-10 17:17:45 -07:00
Daniel Lange
c34be41e1c
Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking alignment
...
Issue Github #841 , Debian bug #910492
2018-10-07 11:16:12 +02:00
Hisham Muhammad
eed18dd107
Remove unused function from unsupported/
2018-02-18 21:18:53 -03:00
Kamyar Rasta
3f6d1262c0
Issue #502 fix SID colunm header width
2017-02-05 00:10:29 +01:00
Kamyar Rasta
84bc00a275
Issue #502 update Session ID column
2017-02-01 00:03:55 +01:00
Hisham
8af4d9f453
Interpret TTY_NR column on Linux,
...
translate dev_t to major:minor on other platforms.
Closes #316 .
2016-10-01 03:09:04 -03:00
Explorer09
1f3d85b617
Mark signal tables 'const'
...
Specifically, Platform_signals[] and Platform_numberOfSignals. Both are
not supposed to be mutable. Marking them 'const' puts them into rodata
sections in binary. And for Platform_numberOfSignals, this aids
optimization (aids only Link Time Optimization for now). :)
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2016-08-30 20:41:17 +08:00
Hisham
ae823c375a
Make unsupported platform build again.
...
(Thanks @coypoop at #397 for the heads up!)
2016-02-14 11:45:47 -02:00
Hisham
ffcf48fb74
Merge branch 'xalloc'
2016-02-02 15:58:45 +01:00
Hisham
b54d2dde40
Check for failure in allocations.
2016-02-02 15:53:02 +01:00
Hisham
301c346c85
Update generated headers.
2016-02-02 12:11:41 +01:00
Michael Klein
b10e54cdee
Merge remote-tracking branch 'upstream/master' into envscreen
2016-01-06 22:39:57 +01:00
Michael McConville
7170382706
Fix spelling of "maintainer"
2016-01-02 12:11:26 -05:00
Michael Klein
cc23d13f87
Add Platform_getProcessEnv
...
- currently implemented for darwin and linux
2015-12-03 22:23:40 +01:00
Christian Hesse
e8970b6f32
fix calloc() calls
...
* size_t nmemb (number of elements) first, then size_t size
* do not assume char is size 1 but use sizeof()
* allocate for char, not pointer to char (found by Michael McConville,
fixes #261 )
2015-09-07 07:52:39 +02:00
Hisham Muhammad
9428010121
Make column width calculation dynamic.
...
Closes #228 .
2015-08-20 00:32:47 -03:00
David Hunt
feb7a01fd3
Make unsupported run
2015-08-19 13:46:41 -03:00
Hisham Muhammad
ddbb71d1c8
Add files to unsupported platform.
2015-03-16 03:16:18 -03:00
Hisham Muhammad
d2acffa59a
Merge branch 'wip' of https://github.com/hishamhm/htop into freebsd
...
Conflicts:
htop.c
unsupported/Platform.h
2015-03-15 22:53:10 -03:00
Hisham Muhammad
5ca9b8e002
Work on fixing build of "unsupported" platform
2015-02-23 00:59:24 -03:00
Hisham Muhammad
d4c26a3932
Merge branch 'master' into freebsd
2014-11-27 21:05:30 -02:00
Hisham Muhammad
430c7c9a9b
Move platform-dependent parts of Linux battery meter.
2014-11-27 21:04:57 -02:00
Hisham Muhammad
da0956d1cd
Merge branch 'master' into freebsd
2014-11-27 20:10:53 -02:00
Hisham Muhammad
b4f6b11092
Move "get max pid" code into platform specific area.
2014-11-27 20:10:23 -02:00
Hisham Muhammad
6d92d7f73d
Load averages for FreeBSD!
2014-11-27 20:03:29 -02:00
Hisham Muhammad
529095607c
Isolate cross-platform code for load average.
2014-11-27 19:57:24 -02:00
Hisham Muhammad
ca03094bb2
Make UptimeMeter cross-platform again.
2014-11-27 19:41:14 -02:00
Hisham Muhammad
357e7a3243
Move UptimeMeter into platform-dependent area.
...
Set up environment to move other meters.
2014-11-27 19:18:14 -02:00
Hisham Muhammad
cda6bdd56b
Add ProcessList_delete to the variable interface.
2014-11-27 17:48:38 -02:00
Hisham Muhammad
26422af608
Files moved and added for supporting separate platforms.
2014-11-24 18:55:49 -02:00