aboutsummaryrefslogtreecommitdiff
path: root/x11/kdebase4-runtime
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2003-12-13 10:52:14 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2003-12-13 10:52:14 +0000
commit38e778d4e5adb9571dbe283364975b4bb3b0aaf9 (patch)
tree11b11ef5bec375b547d94cd1ad86d0b193a2af0c /x11/kdebase4-runtime
parentf8d67015940f05d648b8a7d079e895109bc3ef0a (diff)
downloadports-38e778d4e5adb9571dbe283364975b4bb3b0aaf9.tar.gz
ports-38e778d4e5adb9571dbe283364975b4bb3b0aaf9.zip
Notes
Diffstat (limited to 'x11/kdebase4-runtime')
-rw-r--r--x11/kdebase4-runtime/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/kdebase4-runtime/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c b/x11/kdebase4-runtime/files/patch-ksysguard-ksysguardd-FreeBSD-CPU.c
new file mode 100644
index 000000000000..13b5efd1d38d
--- /dev/null
+++ b/x11/kdebase4-runtime/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);
+ }
+