ALT Linux Bugzilla
– Attachment 5322 Details for
Bug 26948
Индикатор батареи показывает всегда 100%
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
возможный вариант исправления
battery_100_percents.patch (text/plain), 539 bytes, created by
Aleksey Borisenkov
on 2012-02-16 00:09:50 MSK
(
hide
)
Description:
возможный вариант исправления
Filename:
MIME Type:
Creator:
Aleksey Borisenkov
Created:
2012-02-16 00:09:50 MSK
Size:
539 bytes
patch
obsolete
>diff --git a/lxpanel/src/plugins/batt/batt_sys.c b/lxpanel/src/plugins/batt/batt_sys.c >index 62445fe..cc4f0e2 100644 >--- a/lxpanel/src/plugins/batt/batt_sys.c >+++ b/lxpanel/src/plugins/batt/batt_sys.c >@@ -216,7 +216,7 @@ void battery_update(battery *b) > if (b->charge_full < MIN_CAPACITY) > b->percentage = 0; > else { >- int promille = (b->energy_now * 1000) / b->energy_full; >+ int promille = (b->charge_now * 1000) / b->charge_full; > b->percentage = (promille + 5) / 10; /* round properly */ > } > if (b->percentage > 100)
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26948
: 5322 |
5324