Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Feb 5, 2017
1 parent 9bdb346 commit b3ffd5d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NiceHashMiner/Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Algorithm {
public double AvaragedSpeed { get; set; }
// based on device and settings here we set the miner path
public string MinerBinaryPath = "";
// TODO these are changing (logging reasons)
// these are changing (logging reasons)
public double CurrentProfit = 0;
public double CurNhmSMADataVal = 0;

Expand Down
2 changes: 1 addition & 1 deletion NiceHashMiner/Configs/Data/AlgorithmConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class AlgorithmConfig {
public string Name = ""; // Used as an indicator for easier user interaction
public AlgorithmType NiceHashID = AlgorithmType.NONE;
public MinerBaseType MinerBaseType = MinerBaseType.NONE;
public string MinerName = ""; // TODO probably not needed
public string MinerName = ""; // probably not needed
public double BenchmarkSpeed = 0;
public string ExtraLaunchParameters= "";
public bool Enabled = true;
Expand Down
1 change: 1 addition & 0 deletions NiceHashMiner/Devices/ComputeDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public DeviceBenchmarkConfig GetAlgorithmDeviceConfig() {
foreach (var algo in this.AlgorithmSettings) {
// create/setup
AlgorithmConfig conf = new AlgorithmConfig();
conf.Name = algo.AlgorithmStringID;
conf.NiceHashID = algo.NiceHashID;
conf.MinerBaseType = algo.MinerBaseType;
conf.MinerName = algo.MinerName; // TODO probably not needed
Expand Down
3 changes: 3 additions & 0 deletions NiceHashMiner/Devices/GroupAlgorithms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public static Dictionary<MinerBaseType, List<Algorithm>> CreateDefaultsForGroup(
// NVIDIA
if (DeviceGroupType.NVIDIA_2_1 == deviceGroupType || DeviceGroupType.NVIDIA_3_x == deviceGroupType || DeviceGroupType.NVIDIA_5_x == deviceGroupType || DeviceGroupType.NVIDIA_6_x == deviceGroupType) {
var ToRemoveAlgoTypes = new List<AlgorithmType>();
var ToRemoveMinerTypes = new List<MinerBaseType>();
var ret = new Dictionary<MinerBaseType, List<Algorithm>>() {
{ MinerBaseType.ccminer,
new List<Algorithm>() {
Expand Down Expand Up @@ -214,6 +215,7 @@ public static Dictionary<MinerBaseType, List<Algorithm>> CreateDefaultsForGroup(
AlgorithmType.Lyra2RE,
AlgorithmType.Lyra2REv2
});
ToRemoveMinerTypes.Add(MinerBaseType.eqm);
}
if (DeviceGroupType.NVIDIA_2_1 == deviceGroupType) {
ToRemoveAlgoTypes.AddRange(new AlgorithmType[] {
Expand All @@ -225,6 +227,7 @@ public static Dictionary<MinerBaseType, List<Algorithm>> CreateDefaultsForGroup(

// filter unused
var finalRet = FilterMinerAlgos(ret, ToRemoveAlgoTypes);
finalRet = FilterMinerBaseTypes(finalRet, ToRemoveMinerTypes);

return finalRet;
}
Expand Down
2 changes: 1 addition & 1 deletion NiceHashMiner/Forms/Components/AlgorithmSettingsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void SetCurrentlySelected(ListViewItem lvi, ComputeDevice computeDevice)
this.Enabled = lvi.Checked;

groupBoxSelectedAlgorithmSettings.Text = String.Format(International.GetText("AlgorithmsListView_GroupBox"),
algorithm.AlgorithmName); ;
String.Format("{0} ({1})", algorithm.AlgorithmName, algorithm.MinerBaseTypeName)); ;

field_LessThreads.Enabled = _computeDevice.DeviceGroupType == DeviceGroupType.CPU;
if (field_LessThreads.Enabled) {
Expand Down
3 changes: 0 additions & 3 deletions NiceHashMiner/Miners/Miner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ virtual public void InitMiningSetup(MiningSetup miningSetup) {
SetAPIPort();
}

// TODO remove or don't recheck
public void InitBenchmarkSetup(MiningPair benchmarkPair) {
InitMiningSetup(new MiningSetup(new List<MiningPair>() { benchmarkPair }));
BenchmarkAlgorithm = benchmarkPair.Algorithm;
Expand Down Expand Up @@ -570,8 +569,6 @@ protected void StartCoolDownTimerChecker() {


virtual protected void Miner_Exited() {
// TODO make miner restart in 5 seconds
//Stop(MinerStopType.END, true);
ScheduleRestart(5000);
}

Expand Down

0 comments on commit b3ffd5d

Please sign in to comment.