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
swap_perc: check for division by zero
master
Aaron Marcher
hace 6 años
padre
d8ce4e6942
commit
806815778f
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/swap.c
+ 4
- 0
components/swap.c
Ver fichero
@@ -76,6 +76,10 @@
}
sscanf(match, "SwapFree: %ld kB\n", &free);
if (total == 0) {
return NULL;
}
return bprintf("%d%%", 100 * (total - free - cached) / total);
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar