]> git.pld-linux.org Git - packages/enlightenment.git/blame - enlightenmentDR17-module_temp_mac.patch
- up to 0.16.999.037
[packages/enlightenment.git] / enlightenmentDR17-module_temp_mac.patch
CommitLineData
5a9d0d3b 1--- enlightenment-0.16.999.026/src/modules/temperature/e_mod_config.c.orig 2006-04-24 12:47:29.000000000 +0000
2+++ enlightenment-0.16.999.026/src/modules/temperature/e_mod_config.c 2006-04-24 12:49:59.000000000 +0000
3@@ -281,6 +281,10 @@
4
5 f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
6 if (f) fclose(f);
7+ else {
8+ f = fopen("/sys/devices/temperatures/sensor1_temperature", "rb");
9+ if (f) fclose(f);
10+ }
11
12 if (!f)
13 {
14--- enlightenment-0.16.999.026/src/modules/temperature/e_mod_main.c.orig 2006-04-24 12:47:26.000000000 +0000
15+++ enlightenment-0.16.999.026/src/modules/temperature/e_mod_main.c 2006-04-24 12:58:18.000000000 +0000
16@@ -291,6 +291,10 @@
17 if (therms) ecore_list_destroy(therms);
18
19 f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
20+ if (!f) {
21+ f = fopen("/sys/devices/temperatures/sensor1_temperature", "rb");
22+ }
23+
24 if (f)
25 {
26 fgets(buf, sizeof(buf), f); buf[sizeof(buf) - 1] = 0;
This page took 0.071181 seconds and 4 git commands to generate.