From 83110b4485fdfa48ebbe3774856a59a40214bc4b Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Sat, 25 Nov 2023 21:42:40 +0000 Subject: [PATCH] Add tuning options for Chromebook --- tor-miner/runner.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tor-miner/runner.go b/tor-miner/runner.go index 0e78156..d2ed874 100644 --- a/tor-miner/runner.go +++ b/tor-miner/runner.go @@ -17,10 +17,10 @@ import ( ) const ( - DefaultMinerPath = "xmrig" - TorProxyAddr = "127.0.0.1:9050" - TorStartupTimeout = time.Minute - DefaultAPIAddr = "127.0.0.1:3638" + DefaultMinerPath = "xmrig" + TorProxyAddr = "127.0.0.1:9050" + TorStartupTimeout = time.Minute + DefaultAPIAddr = "127.0.0.1:3638" ) var UsageError = errors.New( @@ -90,6 +90,9 @@ func (r *Runner) Run(ctx context.Context) error { if strings.Contains(out, " i7-1255U ") { opts := []string{"-t", "8", "--cpu-affinity=3727"} r.MinerArgs = append(r.MinerArgs, opts...) + } else if strings.Contains(out, " i3-10110U ") { + opts := []string{"-t", "4"} + r.MinerArgs = append(r.MinerArgs, opts...) } // Discover or configure our HTTP API details