mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 桌面端检查磁盘可用空间 https://github.com/siyuan-note/siyuan/issues/6873
This commit is contained in:
parent
a5c3a4a66e
commit
af6a5918e9
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ func autoStat() {
|
||||||
logging.LogErrorf("get disk usage failed: %s", err)
|
logging.LogErrorf("get disk usage failed: %s", err)
|
||||||
return
|
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) {
|
if usage.Free < uint64(Conf.Stat.DataSize*2) {
|
||||||
util.PushMsg(Conf.Language(179), 7000)
|
util.PushMsg(Conf.Language(179), 7000)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue