diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2006-12-03 18:39:23 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2006-12-03 18:39:23 +0000 |
commit | 7105ff30b1a45440978265ef9f66aa646ef16268 (patch) | |
tree | f7e0d6d77ac3c142a5db6aae9f78d76b52f4bccb /sysutils | |
parent | 84956496a12f210b0e8ca485f01d9196d3a1b97a (diff) | |
download | ports-7105ff30b1a45440978265ef9f66aa646ef16268.tar.gz ports-7105ff30b1a45440978265ef9f66aa646ef16268.zip |
Fix ${freq} and ${freq_g} variables.
PR: ports/106261
Submitted by: Karsten Rothemund <karsten@photor.de>
Obtained from: conky svn
Notes
Notes:
svn path=/head/; revision=178716
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/conky-awesome/files/patch-src-conky.c | 18 | ||||
-rw-r--r-- | sysutils/conky-awesome/files/patch-src-freebsd.c | 11 | ||||
-rw-r--r-- | sysutils/conky/files/patch-src-conky.c | 18 | ||||
-rw-r--r-- | sysutils/conky/files/patch-src-freebsd.c | 11 |
4 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/conky-awesome/files/patch-src-conky.c b/sysutils/conky-awesome/files/patch-src-conky.c new file mode 100644 index 000000000000..4031371fa01c --- /dev/null +++ b/sysutils/conky-awesome/files/patch-src-conky.c @@ -0,0 +1,18 @@ +--- src/conky.c.orig Sun Dec 3 21:22:49 2006 ++++ src/conky.c Sun Dec 3 21:23:15 2006 +@@ -2046,7 +2046,6 @@ + OBJ(acpitemp, 0) obj->data.i = open_acpi_temperature(arg); + END OBJ(acpitempf, 0) obj->data.i = open_acpi_temperature(arg); + END OBJ(acpiacadapter, 0) +-#if defined(__linux__) + END OBJ(freq, 0) + get_cpu_count(); + if (!arg +@@ -2079,6 +2078,7 @@ + obj->data.cpu_index=atoi(&arg[0]); + } + obj->a = 1; ++#if defined(__linux__) + END OBJ(voltage_mv, 0) + get_cpu_count(); + if (!arg diff --git a/sysutils/conky-awesome/files/patch-src-freebsd.c b/sysutils/conky-awesome/files/patch-src-freebsd.c new file mode 100644 index 000000000000..e08e55489d3f --- /dev/null +++ b/sysutils/conky-awesome/files/patch-src-freebsd.c @@ -0,0 +1,11 @@ +--- src/freebsd.c.orig Sun Dec 3 21:22:52 2006 ++++ src/freebsd.c Sun Dec 3 21:23:33 2006 +@@ -514,7 +514,7 @@ + if (freq_sysctl == NULL) + exit(-1); + +- snprintf(freq_sysctl, 16, "dev.cpu.%d.freq", cpu); ++ snprintf(freq_sysctl, 16, "dev.cpu.%d.freq", (cpu - 1)); + + if (!p_client_buffer || client_buffer_size <= 0 || + !p_format || divisor <= 0) diff --git a/sysutils/conky/files/patch-src-conky.c b/sysutils/conky/files/patch-src-conky.c new file mode 100644 index 000000000000..4031371fa01c --- /dev/null +++ b/sysutils/conky/files/patch-src-conky.c @@ -0,0 +1,18 @@ +--- src/conky.c.orig Sun Dec 3 21:22:49 2006 ++++ src/conky.c Sun Dec 3 21:23:15 2006 +@@ -2046,7 +2046,6 @@ + OBJ(acpitemp, 0) obj->data.i = open_acpi_temperature(arg); + END OBJ(acpitempf, 0) obj->data.i = open_acpi_temperature(arg); + END OBJ(acpiacadapter, 0) +-#if defined(__linux__) + END OBJ(freq, 0) + get_cpu_count(); + if (!arg +@@ -2079,6 +2078,7 @@ + obj->data.cpu_index=atoi(&arg[0]); + } + obj->a = 1; ++#if defined(__linux__) + END OBJ(voltage_mv, 0) + get_cpu_count(); + if (!arg diff --git a/sysutils/conky/files/patch-src-freebsd.c b/sysutils/conky/files/patch-src-freebsd.c new file mode 100644 index 000000000000..e08e55489d3f --- /dev/null +++ b/sysutils/conky/files/patch-src-freebsd.c @@ -0,0 +1,11 @@ +--- src/freebsd.c.orig Sun Dec 3 21:22:52 2006 ++++ src/freebsd.c Sun Dec 3 21:23:33 2006 +@@ -514,7 +514,7 @@ + if (freq_sysctl == NULL) + exit(-1); + +- snprintf(freq_sysctl, 16, "dev.cpu.%d.freq", cpu); ++ snprintf(freq_sysctl, 16, "dev.cpu.%d.freq", (cpu - 1)); + + if (!p_client_buffer || client_buffer_size <= 0 || + !p_format || divisor <= 0) |