From 73a3b16f297933fd71d3f589e8a53ccacb508033 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 30 Dec 2024 15:30:51 +0400 Subject: [PATCH] Fixed benchmark for ScanDirectory(). --- pkg/files/files_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/files/files_test.go b/pkg/files/files_test.go index 1a094dd..1f82e49 100644 --- a/pkg/files/files_test.go +++ b/pkg/files/files_test.go @@ -2,12 +2,12 @@ package files import "testing" -const path = "/mnt/data/music/Various" -const urlBase = "/srv/ftp/" +const base = "/srv/ftp" +const path = "/music/Various" func BenchmarkScanDirectory(b *testing.B) { for i := 0; i < b.N; i++ { - /*e, _, _ :=*/ ScanDirectory(path, urlBase) + /*e, _, _ :=*/ ScanDirectory(base, path) // b.Log(e[len(e)-1], len(e)) } }