Skip to content

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

:art: https://ld246.com/article/1769610715566

Daniel22f63e335a23
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go
index 2a08115ad2..6ddeff3ea7 100644
--- a/kernel/util/runtime.go
+++ b/kernel/util/runtime.go
@@ -108,7 +108,12 @@ func logBootInfo() {
}
go func() {
- if ghw.DriveTypeSSD.String() != getWorkspaceDriveType() {
+ driveType := getWorkspaceDriveType()
+ if "" == driveType {
+ return
+ }
+
+ if ghw.DriveTypeSSD.String() != driveType {
logging.LogWarnf("workspace dir [%s] is not in SSD drive, performance may be affected", WorkspaceDir)
WaitForUILoaded()
time.Sleep(3 * time.Second)