From 296cc1bca2bd6095e91a634ace5603e436e21860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wilczy=C5=84ski?= Date: Thu, 30 Sep 2021 19:19:18 +0900 Subject: [PATCH] lib/model: Limit the number of default hashers on Android (ref #2220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like Windows and Mac, Android is also an interactive operating system. On top of that, it usually runs on much slower hardware than the other two. Because of that, it makes sense to limit the number of hashes used by default there too. Signed-off-by: Tomasz WilczyƄski --- lib/model/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/model.go b/lib/model/model.go index 2218bd802..c1b3ddaa8 100644 --- a/lib/model/model.go +++ b/lib/model/model.go @@ -2403,7 +2403,7 @@ func (m *model) numHashers(folder string) int { return folderCfg.Hashers } - if runtime.GOOS == "windows" || runtime.GOOS == "darwin" { + if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "android" { // Interactive operating systems; don't load the system too heavily by // default. return 1