Lines 281-286
Link Here
|
281 |
int acpi_read (int battery, apm_info *info) { |
281 |
int acpi_read (int battery, apm_info *info) { |
282 |
char *buf, *state; |
282 |
char *buf, *state; |
283 |
|
283 |
|
|
|
284 |
if (acpi_batt_count == 0) { |
285 |
info->battery_percentage = 0; |
286 |
info->battery_time = 0; |
287 |
info->battery_status = BATTERY_STATUS_ABSENT; |
288 |
acpi_batt_capacity[battery] = 0; |
289 |
/* Where else would the power come from, eh? ;-) */ |
290 |
info->ac_line_status = 1; |
291 |
return 0; |
292 |
} |
293 |
|
284 |
/* Internally it's zero indexed. */ |
294 |
/* Internally it's zero indexed. */ |
285 |
battery--; |
295 |
battery--; |
286 |
|
296 |
|