本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
rinri
/
slstatus
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Fix disk_perc by casting it to int
master
Aaron Marcher
6 年之前
父節點
4fc4983502
當前提交
dcffaeaf57
共有
1 個檔案被更改
,包括
2 行新增
和
2 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
components/disk.c
+ 2
- 2
components/disk.c
查看文件
@@ -30,8 +30,8 @@ disk_perc(const char *mnt)
return NULL;
}
return bprintf("%d", 100 *
(1.0f - ((float)fs.f_bfree / (float)fs.f_blocks)));
return bprintf("%d",
(int)(
100 *
(1.0f - ((float)fs.f_bfree / (float)fs.f_blocks)))
)
;
}
const char *
Write
Preview
Loading…
取消
儲存