Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 桌面端检查磁盘可用空间 https://github.com/siyuan-note/siyuan/issues/6873

Liang Dingaf6a5918e9b2
diff --git a/kernel/model/box.go b/kernel/model/box.go
index 94a884ae4a..2d32d6441a 100644
--- a/kernel/model/box.go
+++ b/kernel/model/box.go
@@ -90,7 +90,7 @@ func autoStat() {
logging.LogErrorf("get disk usage failed: %s", err)
return
}
- logging.LogInfof("disk usage [used=%s, total=%s]", humanize.Bytes(usage.Used), humanize.Bytes(usage.Total))
+ logging.LogInfof("disk usage [total=%s, used=%s, free=%s]", humanize.Bytes(usage.Total), humanize.Bytes(usage.Used), humanize.Bytes(usage.Free))
if usage.Free < uint64(Conf.Stat.DataSize*2) {
util.PushMsg(Conf.Language(179), 7000)
}