ntminer 5 年之前
父节点
当前提交
5d0cf1025f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/NTMinerDataSchemas/Core/MinerServer/ClientData.cs

+ 2 - 2
src/NTMinerDataSchemas/Core/MinerServer/ClientData.cs

@@ -700,14 +700,14 @@ namespace NTMiner.Core.MinerServer {
 
 
         public double GetMainCoinRejectPercent() {
         public double GetMainCoinRejectPercent() {
             if (this.MainCoinTotalShare == 0) {
             if (this.MainCoinTotalShare == 0) {
-                return double.NaN;
+                return 0;
             }
             }
             return this.MainCoinRejectShare / this.MainCoinTotalShare;
             return this.MainCoinRejectShare / this.MainCoinTotalShare;
         }
         }
 
 
         public double GetDualCoinRejectPercent() {
         public double GetDualCoinRejectPercent() {
             if (this.DualCoinTotalShare == 0) {
             if (this.DualCoinTotalShare == 0) {
-                return double.NaN;
+                return 0;
             }
             }
             return this.DualCoinRejectShare / this.DualCoinTotalShare;
             return this.DualCoinRejectShare / this.DualCoinTotalShare;
         }
         }