diff options
author | lofi <lofi@FreeBSD.org> | 2003-12-13 18:52:14 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2003-12-13 18:52:14 +0800 |
commit | 2a4a01fffa3859a0a84ce68426cf69f0e075b6b2 (patch) | |
tree | 7f97db004bcd28e2163907a4b68bfd6df73f9982 /x11/kde4-workspace | |
parent | e3aa82a7234cef2ee63dd7db10ed074785b8b72a (diff) | |
download | freebsd-ports-gnome-2a4a01fffa3859a0a84ce68426cf69f0e075b6b2.tar.gz freebsd-ports-gnome-2a4a01fffa3859a0a84ce68426cf69f0e075b6b2.tar.zst freebsd-ports-gnome-2a4a01fffa3859a0a84ce68426cf69f0e075b6b2.zip |
Add a patch to correct CPU states readout in
ksysguard.
PR: ports/59080
Submitted by: Markus Brueffer
Diffstat (limited to 'x11/kde4-workspace')
-rw-r--r-- | x11/kde4-workspace/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/kde4-workspace/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c b/x11/kde4-workspace/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c new file mode 100644 index 000000000000..13b5efd1d38d --- /dev/null +++ b/x11/kde4-workspace/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c @@ -0,0 +1,21 @@ +--- ksysguard/ksysguardd/FreeBSD/CPU.c.orig Sat Nov 8 15:40:15 2003 ++++ ksysguard/ksysguardd/FreeBSD/CPU.c Sat Nov 8 15:16:40 2003 +@@ -49,6 +49,8 @@ + long cp_diff[CPUSTATES]; + int cpu_states[CPUSTATES]; + ++size_t cp_time_len = sizeof(cp_time); ++ + void + initCpuInfo(struct SensorModul* sm) + { +@@ -73,7 +75,7 @@ + int + updateCpuInfo(void) + { +- sysctlbyname("kern.cp_time", &cp_time, sizeof(cp_time), NULL, 0); ++ sysctlbyname("kern.cp_time", &cp_time, &cp_time_len, NULL, 0); + percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); + return (0); + } + |