From ea0f4135ea940bc5a41262b2ba9fb8c86cf19641 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 6 Nov 2023 22:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=93=E5=AD=98=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=95=B0=E6=8D=AE=E5=BA=93=E7=BC=93=E5=AD=98=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/list_file_db.go | 2 +- internal/caches/list_file_db_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/caches/list_file_db.go b/internal/caches/list_file_db.go index ddc7a3b..64d050c 100644 --- a/internal/caches/list_file_db.go +++ b/internal/caches/list_file_db.go @@ -68,7 +68,7 @@ func (this *FileListDB) Open(dbPath string) error { var cacheSize = 512 var memoryGB = utils.SystemMemoryGB() if memoryGB >= 1 { - cacheSize = 128 * memoryGB + cacheSize = 256 * memoryGB } // write db diff --git a/internal/caches/list_file_db_test.go b/internal/caches/list_file_db_test.go index af19ef7..e615c8d 100644 --- a/internal/caches/list_file_db_test.go +++ b/internal/caches/list_file_db_test.go @@ -116,7 +116,7 @@ func TestFileListDB_Memory(t *testing.T) { _ = db.Close() }() - err := db.Open(Tea.Root + "/data/db-0.db") + err := db.Open(Tea.Root + "/data/cache-index/p1/db-0.db") if err != nil { t.Fatal(err) }