NiceHashMiner.EthminerReader.GetDAGprogress C# (CSharp) Method

GetDAGprogress() public method

Get DAG progress in %. It only reports correct progress if ethminer is launched with -D parameter.
public GetDAGprogress ( ) : uint
return uint
        public uint GetDAGprogress()
        {
            return DAGprogress;
        }

Usage Example

Esempio n. 1
0
        private void CheckTimer_Tick(object sender, EventArgs e)
        {
            uint prog = EthReader.GetDAGprogress();

            if (progressBar1.Value != (int)prog)
            {
                Helpers.ConsolePrint(Worker, "DAG progress: " + prog.ToString() + "%");
                progressBar1.Value = (int)prog;
                // todo: display % on progress bar... some GUI work
            }

            if (EthMinerProcess.HasExited)
            {
                System.Threading.Thread.Sleep(500);
                if (EthReader.GetDAGprogress() == 100)
                {
                    Success = true;
                    Terminate(null);
                }
                else
                {
                    Terminate("ethminer crashed");
                }
            }
        }
All Usage Examples Of NiceHashMiner.EthminerReader::GetDAGprogress