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

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theLosers106 committed Jun 21, 2016
1 parent 81f3f2d commit 5374e7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NiceHashMiner/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ private void StartupTimer_Tick(object sender, EventArgs e)
SMAMinerCheck = new Timer();
SMAMinerCheck.Tick += SMAMinerCheck_Tick;
SMAMinerCheck.Interval = Config.ConfigData.SwitchMinSecondsFixed * 1000 + R.Next(Config.ConfigData.SwitchMinSecondsDynamic * 1000);
if (Miners[CPUs + 3].CDevs.Count > 0) SMACheck.Interval += (Config.ConfigData.SwitchMinSecondsAMD * 1000);

if (Miners[CPUs + 3].CDevs.Count > 0) SMAMinerCheck.Interval = (Config.ConfigData.SwitchMinSecondsAMD + Config.ConfigData.SwitchMinSecondsFixed) * 1000 + R.Next(Config.ConfigData.SwitchMinSecondsDynamic * 1000);
UpdateCheck = new Timer();
UpdateCheck.Tick += UpdateCheck_Tick;
UpdateCheck.Interval = 1000 * 3600; // every 1 hour
Expand Down Expand Up @@ -426,7 +426,7 @@ private void IncreaseLoadCounter()
private void SMAMinerCheck_Tick(object sender, EventArgs e)
{
SMAMinerCheck.Interval = Config.ConfigData.SwitchMinSecondsFixed * 1000 + R.Next(Config.ConfigData.SwitchMinSecondsDynamic * 1000);
if (Miners[CPUs + 3].CDevs.Count > 0) SMACheck.Interval += (Config.ConfigData.SwitchMinSecondsAMD * 1000);
if (Miners[CPUs + 3].CDevs.Count > 0) SMAMinerCheck.Interval = (Config.ConfigData.SwitchMinSecondsAMD + Config.ConfigData.SwitchMinSecondsFixed) * 1000 + R.Next(Config.ConfigData.SwitchMinSecondsDynamic * 1000);

string Worker = textBox2.Text.Trim();
if (Worker.Length > 0)
Expand Down

0 comments on commit 5374e7b

Please sign in to comment.