예제 #1
0
        public string GetActiveMinersGroup()
        {
            if (IsCurrentlyIdle)
            {
                return("IDLE");
            }

            string ActiveMinersGroup = "";

            //get unique miner groups like CPU, NVIDIA, AMD,...
            HashSet <string> UniqueMinerGroups = new HashSet <string>();

            foreach (var miningDevice in _miningDevices)
            {
                //if (miningDevice.MostProfitableKey != AlgorithmType.NONE) {
                UniqueMinerGroups.Add(GroupNames.GetNameGeneral(miningDevice.Device.DeviceType));
                //}
            }
            if (UniqueMinerGroups.Count > 0 && IsProfitable)
            {
                ActiveMinersGroup = String.Join("/", UniqueMinerGroups);
            }

            return(ActiveMinersGroup);
        }