Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
rinri
/
slstatus
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
battery_remaining: check for division by zero
master
Aaron Marcher
6 anos atrás
pai
a546d4b585
commit
aa8654795d
1 arquivos alterados
com
4 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+4
-0
components/battery.c
+ 4
- 0
components/battery.c
Ver arquivo
@@ -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;
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar