This website works better with JavaScript.
首頁
探索
說明
登入
rinri
/
slstatus
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
swap: OS split
master
Quentin Rameau
6 年之前
committed by
Aaron Marcher
父節點
259e106b4f
當前提交
72f5a0d69a
共有
3 個文件被更改
,包括
2 次插入
和
4 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Makefile
+1
-3
components/Linux/swap.c
+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
查看文件
Write
Preview
Loading…
取消
儲存