This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
rinri
/
slstatus
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
battery_remaining: check for division by zero
master
Aaron Marcher
пре 6 година
родитељ
a546d4b585
комит
aa8654795d
1 измењених фајлова
са
4 додато
и
0 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
components/battery.c
+ 4
- 0
components/battery.c
Прегледај датотеку
@@ -107,6 +107,10 @@
return NULL;
}
if (current_now == 0) {
return NULL;
}
timeleft = (double)charge_now / (double)current_now;
h = timeleft;
m = (timeleft - (double)h) * 60;
Write
Preview
Loading…
Откажи
Сачувај