- ccat(4, BATTERY_PATH, battery, "/", BATTERY_FULL);
-
- fp = fopen(concat, "r");
- if (fp == NULL) {
- warn("Error opening battery file: %s", concat);
- return smprintf(UNKNOWN_STR);
- }
-
- fscanf(fp, "%i", &full);
- fclose(fp);
-
- perc = now / (full / 100);
-