diff options
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) |