Christian Göttsche
0c1908832b
Handle data wraparounds in IO Meters
...
If the current data is smaller than the previous one, either by a retrieve error
or a device removal or a original data wraparound, sanitize the value to zero.
Fixes : #299
5 years ago
Christian Göttsche
15652e7b81
Enclose macro arguments in parentheses
5 years ago
Murloc Knight
ab17ef4dc0
Zram Meter feature
5 years ago
Christian Göttsche
43d274a617
Use integer type for item count instead of char
5 years ago
Erdem Ersoy
59ef15b2ad
Fix segmentation fault when column name is NULL.
...
So, some columns (ex: SECATTR) can be sortable now.
5 years ago
Daniel Lange
6787c43097
Merge branch 'source-format' of BenBE/htop
...
Closes #158
5 years ago
Benny Baumann
de884d17bb
Documentation on the repository style guide
5 years ago
Christian Göttsche
bbf01054bf
Add compat wrapper for fstatat
5 years ago
Christian Göttsche
049046c700
FreeBSD: update Process
5 years ago
Christian Göttsche
97ea45ca9a
FreeBSD: update ProcessList
5 years ago
Christian Goettsche
c2fdfd99eb
FreeBSD: implement Platform_getDiskIO()
5 years ago
Christian Göttsche
c91061c84b
FreeBSD: Platform update
5 years ago
Christian Goettsche
88eec2dc00
FreeBSD: rework tty process column
5 years ago
Christian Göttsche
ddbb0c2c35
Add HTOP_$platform defines to config.h header
...
Can be used to conditionally compile platform specific code.
5 years ago
Christian Göttsche
03b773b701
Small ListItem update
5 years ago
Christian Göttsche
6375df49c9
Simplify RichString_begin
5 years ago
Christian Göttsche
887dfde308
Implement Process_getParentPid and Process_isChildOf as functions
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
76797f8d92
Implement Process_isUserlandThread as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
d33b2be2ca
Implement LinuxProcess_effectiveIOPriority as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
6b3dbd5c67
Implement IncSet_filter as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
7019949574
Implement RichString_setLen as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
8c1f5c5a6f
Enclose macro arguments in parentheses
5 years ago
Christian Göttsche
61bae4c9d2
Unify function argument names
...
Name first argument of ProcessList_goThroughEntries consistently super
Name first argument of ProcessList_new consistently userTable
5 years ago
Benny Baumann
cf1a9ec180
Refactor LinuxProcessList_readSmapsFile to work line-oriented
5 years ago
Christian Göttsche
e89b289494
Drop duplicate assignment
5 years ago
Christian Göttsche
059810ca65
Drop always true condition
5 years ago
Christian Göttsche
ac2b07eddd
Avoid some unnecessary casts and mark some not changing variables const
5 years ago
Christian Göttsche
27870bd4de
Drop unneeded variablw initialization and reduce scope
5 years ago
Christian Göttsche
1533ea88a6
Drop duplicate and always true condition
...
This block is only entered if this->owner is true.
5 years ago
Benny Baumann
c98d4577c9
Refactor code for reading process environment from procfs
5 years ago
Christian Göttsche
a3bb7cbe64
Hold only a const version of Settings in ProcessList
5 years ago
Christian Göttsche
4eb443926f
Hold only a const version of Settings in Process
5 years ago
Christian Göttsche
7109172431
Mark process parameter of Process_writeField consistently const
5 years ago
Christian Göttsche
72103e9613
Hold only a const version of the ProcessList in Meters
5 years ago
Christian Göttsche
f757810f48
Improve handling of no data in Disk and Network IO Meters
5 years ago
Jan Palus
167adc0a2b
Parse POWER_SUPPLY_CAPACITY
...
If POWER_SUPPLY_{CHARGE,ENERGY}_NOW is missing then try to use
POWER_SUPPLY_CAPACITY to determine current charge level.
5 years ago
Ross Williams
94e32cf1e8
Simplify environment-reading code
...
Suggested PR changes, thanks @cgzones
5 years ago
Ross Williams
0ae2bb1f8e
Add process environment for FreeBSD
5 years ago
Christian Göttsche
11bf7be9c2
Mark user field of Process const
...
It's a non-owning pointer to a hashtable entry.
5 years ago
Christian Göttsche
b08b255b41
Drop unused Platform functions Platform_setTasksValues
5 years ago
Daniel Lange
f8bd5acdc1
Merge branch 'Fix wrong strncmp replacement' of cgzones/htop
5 years ago
Christian Göttsche
e12d48a661
Fix wrong strncmp replacement
...
Fixes 4c66eb6d4c
5 years ago
Christian Göttsche
7429c22201
Drop unnecessary cast
5 years ago
Christian Göttsche
45a22080c9
Increase print buffer in NetworkIOMeter_display
...
In case the packet values wrap-around or have other weird values, the
current buffer might be to small
5 years ago
Christian Göttsche
8a08a3209c
IWYU update
...
- Add Settings forward declaration in Process.h
- Add assert.h include in XUitls.c
- Add conditional stdbool.h include in Object.h
- Drop unneeded stddef.h include in Richstring.c
- Drop unneeded unistd.h include in Process.h
- Drop unneeded string.h include in linux/Platform.c
- Use String_eq to avoid string.h include in Action.c
- Improve script to run custom iwyu version
5 years ago
Christian Göttsche
803234a58d
update Github CI
...
- Add a full featured clang job
- Explicit disable options otherwise enabled by default in minimal job
5 years ago
Christian Göttsche
f8208f2173
Drop tabs in source indentions
5 years ago
srajmane
dea19b644f
s390x support for travis
5 years ago
Daniel Lange
0c5430982e
Merge branch 'screenshot' of nzbart/htop
5 years ago
Daniel Lange
0ea18a6edb
Merge branch 'Xalloc_Cleanup' of cgzones/htop
5 years ago