Gaël Bonithon
2a9a32b3a0
Apply .clang-format file
2024-05-05 17:58:13 +02:00
Gaël Bonithon
95a2d9c5bf
Clean up and sort includes
2024-05-05 17:58:13 +02:00
Gaël Bonithon
8f471a735d
build: Fix -Wcast-align warning from clang
2024-01-24 15:04:37 +01:00
Gaël Bonithon
8abbd3bd3a
build: Add GLib requirement
...
For consistency with other components and for the GLib macros set by
XDT_CHECK_PACKAGE when building with xfce4-dev-tools >= 4.17.1.
2023-02-03 21:07:37 +01:00
Jan Ziak
bed04577a5
Add support for MemAvailable ( !10 )
...
MemAvailable is in /proc/meminfo since Linux 3.14.
This aligns the reported memory usage with the memory usage
reported by xfce4-systemload-plugin.
Closes !10
2020-10-12 14:57:23 -03:00
Landry Breuil
993ef78b81
Switch back all bzero() calls to use memset()
...
Even if it's uglier to use memset, bzero seems deprecated.
2018-06-03 17:56:31 +02:00
rim
8e1b48f8de
Move getpwuid() from backends to gui, use getpwuid_r(), call only once on task add. (bug 14401)
2018-05-30 21:31:01 +02:00
rim
ceb5a7d347
Make pid type: GPid (bug 14401)
2018-05-30 21:28:35 +02:00
Landry Breuil
159c3c1d0c
Sort the task list by pid, as we're going to use bsearch() (bug 14403)
2018-05-26 23:52:46 +02:00
rim
704411a38b
Properly use float for constants where appropriate (bug 14401, bug 14403)
2018-05-26 23:51:32 +02:00
rim
2329f243fb
Properly zero memory where appropriate (bug 14401, bug 14403)
2018-05-26 23:40:11 +02:00
rim
5e0fb6f4bc
Use sizeof() when appropriate instead of hardcoding values (bug 14401, bug 14403)
2018-05-26 23:19:55 +02:00
Landry Breuil
96ee31879b
uninitialized variable in solaris backend
2014-12-04 20:35:06 +01:00
Mike Massonnet
cfae61f98d
Fix compiler warnings from Solaris implementation
2010-06-09 13:50:24 +02:00
Mike Massonnet
f929d83f37
[linux|solaris] Fix regression introduced with the “Refresh rate” option
...
The CPU usage computation done for the processes were broken when the
refresh rate was different than a second. The introduced fix is only
necessary for the Linux and OpenSolaris implementations.
2010-05-24 19:41:41 +02:00
Mike Massonnet
bbd591fd23
Display Swap usage in Solaris implementation
...
The Swap usage is retrieved through swapctl(). Also on a separate change, read
the CPU time from the nanosecs instead of ticks for increased precision.
2010-05-18 21:48:54 +02:00
Mike Massonnet
db0ab60561
Re-add Solaris implementation
...
Solaris support is in again however the Swap usage is missing. Older
files from the tree source have been removed.
2010-05-16 13:52:52 +02:00