Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
rinri
/
slstatus
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
swap: OS split
master
Quentin Rameau
há 6 anos
committed by
Aaron Marcher
ascendente
259e106b4f
cometimento
72f5a0d69a
3 ficheiros alterados
com
2 adições
e
4 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+1
-1
Makefile
+1
-3
components/Linux/swap.c
+0
-0
components/OpenBSD/swap.c
+ 1
- 1
Makefile
Ver ficheiro
@@ -20,7 +20,7 @@ COM =\
components/num_files\
components/$(OS)/ram \
components/run_command\
components/swap\
components/
$(OS)/
swap
\
components/temperature\
components/uptime\
components/user\
components/swap.c → components/Linux/swap.c
Ver ficheiro
@@ -1,10 +1,9 @@
/* See LICENSE file for copyright and license details. */
#if defined(__linux__)
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "../util.h"
#include "../
../
util.h"
const char *
swap_free(void)
@@ -135,4 +134,3 @@ swap_used(void)
return bprintf("%f", (float)(total - free - cached) / 1024 / 1024);
}
#endif
+ 0
- 0
components/OpenBSD/swap.c
Ver ficheiro
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar