diff options
author | marcus <marcus@FreeBSD.org> | 2007-07-06 20:50:38 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-07-06 20:50:38 +0000 |
commit | 8e523ad68d9de44ea032dd1a271e2e59201382f2 (patch) | |
tree | 750d8537840db21f259b269e0bdef45f3cb29e19 /x11/gnome-applets | |
parent | 1add4b987f8d4054522ddc48031428c8b31bb41b (diff) | |
download | FreeBSD-ports-8e523ad68d9de44ea032dd1a271e2e59201382f2.zip FreeBSD-ports-8e523ad68d9de44ea032dd1a271e2e59201382f2.tar.gz |
Only one dev.cpu.X.freq sysctl is instantiated (instance 0) so trying to
monitor or change other instances will result in a crash. For the time being,
force all monitoring to happen on instance 0.
Reported by: barbara <barbara.xxx175@libero.it>
Diffstat (limited to 'x11/gnome-applets')
-rw-r--r-- | x11/gnome-applets/Makefile | 2 | ||||
-rw-r--r-- | x11/gnome-applets/files/patch-cpufreq-freebsd | 4 | ||||
-rw-r--r-- | x11/gnome-applets/files/patch-cpufreq-selector-freebsd | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/x11/gnome-applets/Makefile b/x11/gnome-applets/Makefile index bb4a0bb..885b47a 100644 --- a/x11/gnome-applets/Makefile +++ b/x11/gnome-applets/Makefile @@ -8,7 +8,7 @@ PORTNAME= gnome-applets PORTVERSION= 2.18.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11/gnome-applets/files/patch-cpufreq-freebsd b/x11/gnome-applets/files/patch-cpufreq-freebsd index e7f0e21..5c7f4df 100644 --- a/x11/gnome-applets/files/patch-cpufreq-freebsd +++ b/x11/gnome-applets/files/patch-cpufreq-freebsd @@ -307,7 +307,7 @@ + + g_object_get (G_OBJECT (monitor), "cpu", &mon_cpu, NULL); + len = sizeof (ifreq); -+ freq_oid = g_strdup_printf ("dev.cpu.%d.freq", mon_cpu); ++ freq_oid = g_strdup_printf ("dev.cpu.%d.freq", 0); + + if (sysctlbyname (freq_oid, &ifreq, &len, NULL, 0) == -1) { + g_free (freq_oid); @@ -346,7 +346,7 @@ + g_object_get (G_OBJECT (monitor), "cpu", &mon_cpu, NULL); + + levels_oid = g_strdup_printf ("dev.cpu.%d.freq_levels", -+ mon_cpu); ++ 0); + len = 4; + sysctlnametomib (levels_oid, mib, &len); + len = sizeof (levels); diff --git a/x11/gnome-applets/files/patch-cpufreq-selector-freebsd b/x11/gnome-applets/files/patch-cpufreq-selector-freebsd index 8d459fd..0647e37 100644 --- a/x11/gnome-applets/files/patch-cpufreq-selector-freebsd +++ b/x11/gnome-applets/files/patch-cpufreq-selector-freebsd @@ -183,7 +183,7 @@ + g_object_get (G_OBJECT (selector), "cpu", &cpu, NULL); + + frequency = (guint) ((gdouble) frequency / 1000); /* Convert back to MHz*/ -+ freq_oid = g_strdup_printf ("dev.cpu.%d.freq", (gint) cpu); ++ freq_oid = g_strdup_printf ("dev.cpu.%d.freq", (gint) 0); + + sysctlbyname (freq_oid, NULL, &len, &frequency, sizeof (frequency)); + g_free (freq_oid); |