Skip to content

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

:bug: 数据统计间隔步长错误

Liang Ding441c0ddef4f5
diff --git a/kernel/util/file.go b/kernel/util/file.go
index 0602118720..f6ca0ae0b6 100644
--- a/kernel/util/file.go
+++ b/kernel/util/file.go
@@ -240,7 +240,7 @@ func CeilSize(size int64) int64 {
for i := int64(1); i < 40; i++ {
if 1024*1024*200*i > size {
- return 1024 * 1024 * int64(i)
+ return 1024 * 1024 * 200 * i
}
}
return 1024*1024*200*40 + 1