فهرست منبع

报告部分值保留四位小数

liyang 7 ماه پیش
والد
کامیت
1ee11ac655
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 4 4
      SimulationServer/Component/SJAllTotalTaskPerformance.cs
  2. 2 2
      SimulationServer/Entity/LandSJRescueMission.cs

+ 4 - 4
SimulationServer/Component/SJAllTotalTaskPerformance.cs

@@ -62,9 +62,9 @@ public class SJAllTotalTaskPerformanceComponent
             任务是否成功 = 1;
             任务是否成功 = 1;
         SSJAllTotalTaskPerformance.识别成功率 = (识别成功率 / aircreftCount).ToString();
         SSJAllTotalTaskPerformance.识别成功率 = (识别成功率 / aircreftCount).ToString();
         SSJAllTotalTaskPerformance.任务准备时间 = 任务准备时间.ToString();
         SSJAllTotalTaskPerformance.任务准备时间 = 任务准备时间.ToString();
-        SSJAllTotalTaskPerformance.平均搜索时间 = (平均搜索时间 / aircreftCount).ToString();
+        SSJAllTotalTaskPerformance.平均搜索时间 = (平均搜索时间 / aircreftCount).ToString("f4");
         SSJAllTotalTaskPerformance.平均救助时间 = 5.ToString();
         SSJAllTotalTaskPerformance.平均救助时间 = 5.ToString();
-        SSJAllTotalTaskPerformance.总飞行时间 = 总飞行时间.ToString();
+        SSJAllTotalTaskPerformance.总飞行时间 = 总飞行时间.ToString("f4");
         SSJAllTotalTaskPerformance.海情覆盖率 = "0.6".ToString();//"60%"
         SSJAllTotalTaskPerformance.海情覆盖率 = "0.6".ToString();//"60%"
         SSJAllTotalTaskPerformance.任务是否成功 = 任务是否成功.ToString();
         SSJAllTotalTaskPerformance.任务是否成功 = 任务是否成功.ToString();
         SSJAllTotalTaskPerformance.人员存活率 = (人员存活率 / aircreftCount).ToString();
         SSJAllTotalTaskPerformance.人员存活率 = (人员存活率 / aircreftCount).ToString();
@@ -111,9 +111,9 @@ public class SJAllTotalTaskPerformanceComponent
             任务是否成功 = 1;
             任务是否成功 = 1;
         LSJAllTotalTaskPerformance.识别成功率 = (识别成功率 / aircreftCount).ToString();
         LSJAllTotalTaskPerformance.识别成功率 = (识别成功率 / aircreftCount).ToString();
         LSJAllTotalTaskPerformance.任务准备时间 = 任务准备时间.ToString();
         LSJAllTotalTaskPerformance.任务准备时间 = 任务准备时间.ToString();
-        LSJAllTotalTaskPerformance.平均搜索时间 = (平均搜索时间 / aircreftCount).ToString();
+        LSJAllTotalTaskPerformance.平均搜索时间 = (平均搜索时间 / aircreftCount).ToString("f4");
         LSJAllTotalTaskPerformance.平均救助时间 = 5.ToString();
         LSJAllTotalTaskPerformance.平均救助时间 = 5.ToString();
-        LSJAllTotalTaskPerformance.总飞行时间 = 总飞行时间.ToString();
+        LSJAllTotalTaskPerformance.总飞行时间 = 总飞行时间.ToString("f4");
         LSJAllTotalTaskPerformance.环境覆盖率 = "0.6".ToString();//"60%"
         LSJAllTotalTaskPerformance.环境覆盖率 = "0.6".ToString();//"60%"
         LSJAllTotalTaskPerformance.任务是否成功 = 任务是否成功.ToString();
         LSJAllTotalTaskPerformance.任务是否成功 = 任务是否成功.ToString();
         LSJAllTotalTaskPerformance.人员存活率 = (人员存活率 / aircreftCount).ToString();
         LSJAllTotalTaskPerformance.人员存活率 = (人员存活率 / aircreftCount).ToString();

+ 2 - 2
SimulationServer/Entity/LandSJRescueMission.cs

@@ -96,10 +96,10 @@ public class LandSJRescueMission : Entity
             aircraftSJDatas[key]["任务准备时间"].Add(aircraftEntity.TaskReadyTime.ToString());
             aircraftSJDatas[key]["任务准备时间"].Add(aircraftEntity.TaskReadyTime.ToString());
             if (!aircraftSJDatas[key].ContainsKey("平均搜索时间"))
             if (!aircraftSJDatas[key].ContainsKey("平均搜索时间"))
                 aircraftSJDatas[key]["平均搜索时间"] = new List<string>();
                 aircraftSJDatas[key]["平均搜索时间"] = new List<string>();
-            aircraftSJDatas[key]["平均搜索时间"].Add(aircraftEntity.SearchTime.ToString("f4"));
+            aircraftSJDatas[key]["平均搜索时间"].Add(aircraftEntity.SearchTime.ToString());
             if (!aircraftSJDatas[key].ContainsKey("总飞行时间"))
             if (!aircraftSJDatas[key].ContainsKey("总飞行时间"))
                 aircraftSJDatas[key]["总飞行时间"] = new List<string>();
                 aircraftSJDatas[key]["总飞行时间"] = new List<string>();
-            aircraftSJDatas[key]["总飞行时间"].Add(aircraftEntity.TotalTime.ToString("f4"));
+            aircraftSJDatas[key]["总飞行时间"].Add(aircraftEntity.TotalTime.ToString());
             if (!aircraftSJDatas[key].ContainsKey("人员存活率"))
             if (!aircraftSJDatas[key].ContainsKey("人员存活率"))
                 aircraftSJDatas[key]["人员存活率"] = new List<string>();
                 aircraftSJDatas[key]["人员存活率"] = new List<string>();
             aircraftSJDatas[key]["人员存活率"].Add(aircraftEntity.Success ? "1" : "0");
             aircraftSJDatas[key]["人员存活率"].Add(aircraftEntity.Success ? "1" : "0");