소스 검색

swap: OS split

master
Quentin Rameau 6 년 전
committed by Aaron Marcher
부모
커밋
72f5a0d69a
3개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      Makefile
  2. +1
    -3
      components/Linux/swap.c
  3. +0
    -0
      components/OpenBSD/swap.c

+ 1
- 1
Makefile 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기


불러오는 중...
취소
저장