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

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theLosers106 committed Jun 21, 2016
1 parent 5374e7b commit c8cd04e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NiceHashMiner/Miner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ virtual public void BenchmarkStart(int index, int time, BenchmarkComplete oncomp
return;
}

if (EnabledDeviceCount() == 0)
if (EnabledDeviceCount() == 0 || EnabledDevicePerAlgoCount(index) < 1)
{
Helpers.ConsolePrint("BENCHMARK", "No device to benchmark..");
OnBenchmarkComplete(false, "Disabled", tag);
Expand Down
13 changes: 10 additions & 3 deletions NiceHashMiner/ccminer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,16 @@ protected void AddEthereum(string match)
long memsize = Convert.ToInt64(memsplit[memsplit.Length - 1]);
if (memsize >= 2147483648)
{
Helpers.ConsolePrint(MinerDeviceName, "Ethereum GPU MemSize: " + memsize + " (GOOD!)");
EtherDevices[index] = device;
index++;
if (outdata.Contains("750") && outdata.Contains("Ti"))
{
Helpers.ConsolePrint(MinerDeviceName, "GTX 750Ti found! By default this device will be disabled for ethereum as it is generally too slow to mine on it.");
}
else
{
Helpers.ConsolePrint(MinerDeviceName, "Ethereum GPU MemSize: " + memsize + " (GOOD!)");
EtherDevices[index] = device;
index++;
}
}
else
{
Expand Down

0 comments on commit c8cd04e

Please sign in to comment.