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
84e719796e
Simplify the way process state is stored on FreeBSD (bug 14401)
2018-05-30 21:59:02 +02:00
rim
6cfb7547b0
More cast/type fixes (bug 14401)
2018-05-30 21:58:08 +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
66a0d4bfc9
Mark unused params, remove unused macro and args (bug 14401)
2018-05-30 21:29:28 +02:00
rim
ceb5a7d347
Make pid type: GPid (bug 14401)
2018-05-30 21:28:35 +02:00
rim
3af7e3d491
Use sysctl w/ KERN_PROC_ARGS instead of kvm_getargv in get_task_details() (bug 14401)
2018-05-26 23:55:49 +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
Olivier Duchateau
6c6b9f6cad
Fix memory usage display (Bug #13371 )
2017-02-22 22:58:59 +01:00
Olivier Duchateau
b7eaff7c1a
Improve memory usage on FreeBSD system.
2017-01-08 18:51:04 +01:00
Cy Shubert
994e0c2b9f
Include <sys/vmmeter.h> on FreeBSD ( #8081 )
2014-11-29 12:10:49 +01:00
Mike Massonnet
6b8162b4e9
[linux|freebsd] Fix condition to calculate CPU usage
2010-05-21 15:29:45 +02:00
Mike Massonnet
175b4cb541
Add FreeBSD implementation
...
Original code (task list) is from Oliver Lehmann and was licensed under
FreeBSD (BSD 2-clause.)
2010-05-21 13:28:10 +02:00