public DeviceBenchmarkConfig GetAlgorithmDeviceConfig()
{
DeviceBenchmarkConfig ret = new DeviceBenchmarkConfig();
ret.DeviceName = this.Name;
ret.DeviceUUID = this.UUID;
// init algo settings
foreach (var algo in this.AlgorithmSettings.Values) {
AlgorithmType key = algo.NiceHashID;
// create/setup
AlgorithmConfig conf = new AlgorithmConfig();
conf.NiceHashID = key;
conf.MinerName = algo.MinerName; // TODO probably not needed
conf.BenchmarkSpeed = algo.BenchmarkSpeed;
conf.ExtraLaunchParameters = algo.ExtraLaunchParameters;
conf.Skip = algo.Skip;
conf.LessThreads = algo.LessThreads;
// insert
ret.AlgorithmSettings[key] = conf;
}
return ret;
}