battery: Fix Linux typo.

Remember to check on Linux before doing a release you spazz!!!
evisum-0.5
Alastair Poole 2 years ago
parent f7b3f09aff
commit 9803a904ea
  1. 2
      src/bin/system/machine/sensors.bogox

@ -282,7 +282,7 @@ _battery_state_get(power_t *power)
for (int i = 0; i < power->battery_count; i++) {
naming = NULL;
path = strsli_printf("/sys/class/power_suppy/%s", power->batteries[i]->name);
path = strsli_printf("/sys/class/power_supply/%s", power->batteries[i]->name);
if (((stat(path, &st) < 0)) || (S_ISLNK(st.st_mode)) || (!S_ISDIR(st.st_mode)))
continue;

Loading…
Cancel
Save