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
swap_perc: check for division by zero
master
Aaron Marcher
6 anos atrás
pai
d8ce4e6942
commit
806815778f
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/swap.c
+ 4
- 0
components/swap.c
Ver arquivo
@@ -76,6 +76,10 @@
}
sscanf(match, "SwapFree: %ld kB\n", &free);
if (total == 0) {
return NULL;
}
return bprintf("%d%%", 100 * (total - free - cached) / total);
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar