Explorar el Código

修改计数上的漏洞

wanghan hace 6 meses
padre
commit
eb9e4a901e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      TeamAAS-VM/Core/Management.cs

+ 1 - 1
TeamAAS-VM/Core/Management.cs

@@ -2929,7 +2929,7 @@ namespace TeamAAS_VP.Core
                 //
                 ThrowNumber = await _systemDatabaseService.GetThrowNumberAsync();
                 NgNumber = await _systemDatabaseService.GetNGProductionAsync(currentproduct.Name);
-                Yield = (TotalQuantityToday - NgNumber) / TotalQuantityToday * 100;
+                Yield = ((double)TotalQuantityToday - (double)NgNumber) / (double)TotalQuantityToday * 100;
             }
             catch (Exception)
             {