Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
rinri
/
slstatus
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
battery_remaining: check for division by zero
master
Aaron Marcher
hace 6 años
padre
a546d4b585
commit
aa8654795d
Se han
modificado 1 ficheros
con
4 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+4
-0
components/battery.c
+ 4
- 0
components/battery.c
Ver fichero
@@ -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;
Escribir
Vista previa
Cargando…
Cancelar
Guardar