FreeBSD Bugzilla – Attachment 220292 Details for
Bug 251618
sysutils/battmond: battmond won't act if battery level suddenly drops to zero
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
proposed patch
patch-battmond.c (text/plain), 418 bytes, created by
dirtystickyfloor
on 2020-12-05 20:40:18 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
dirtystickyfloor
Created:
2020-12-05 20:40:18 UTC
Size:
418 bytes
patch
obsolete
>--- battmond.c.orig 2020-12-05 20:19:13 UTC >+++ battmond.c >@@ -189,7 +189,7 @@ int main(int argc, char ** argv) > #ifdef DEBUG > fprintf(stderr, "Total battery capacity: %d%%\n", total_cap); > #endif >- if (num_discharging && !num_charging && total_cap > 0) { >+ if (num_discharging && !num_charging && total_cap >= 0) { > if (total_cap <= halt) { > if (dosuspend) { // Suspend > syslog(LOG_EMERG, BATT_SUSP);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 251618
: 220292