19 lines
608 B
Diff
19 lines
608 B
Diff
--- src/battery/battery.c 2010-12-02 23:56:11.313403140 +0100
|
|
+++ src/battery/battery.c 2010-12-02 23:57:22.266956142 +0100
|
|
@@ -184,8 +184,14 @@ void init_battery()
|
|
}
|
|
g_free(path2);
|
|
}
|
|
- if (path_energy_now && path_energy_full) {
|
|
+
|
|
+ path_current_now = g_build_filename(battery_dir, "power_now", NULL);
|
|
+ if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) {
|
|
+ g_free(path_current_now);
|
|
path_current_now = g_build_filename(battery_dir, "current_now", NULL);
|
|
+ }
|
|
+
|
|
+ if (path_energy_now && path_energy_full) {
|
|
path_status = g_build_filename(battery_dir, "status", NULL);
|
|
|
|
// check file
|