From 50a9477f0c1340954c4d4246177455e1f5cc78c9 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 15 五月 2019 20:04:29 +0800
Subject: [PATCH] 3335 优化任务等待

---
 System/MainInterfacePanel/TaskModel.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/System/MainInterfacePanel/TaskModel.cs b/System/MainInterfacePanel/TaskModel.cs
index d86ff52..6d6c91c 100644
--- a/System/MainInterfacePanel/TaskModel.cs
+++ b/System/MainInterfacePanel/TaskModel.cs
@@ -1746,7 +1746,7 @@
             {
                 foreach (var key in taskWaits.Keys)
                 {
-                    if ((TimeUtility.ServerNow - taskWaits[key]).TotalSeconds < 1f)
+                    if ((Time.realtimeSinceStartup - taskWaits[key]) < 1f)
                     {
                         return true;
                     }
@@ -1755,11 +1755,11 @@
             }
         }
 
-        Dictionary<TaskWaitType, DateTime> taskWaits = new Dictionary<TaskWaitType, DateTime>();
+        Dictionary<TaskWaitType, float> taskWaits = new Dictionary<TaskWaitType, float>();
 
         public void Push(TaskWaitType type)
         {
-            taskWaits[type] = TimeUtility.ServerNow;
+            taskWaits[type] = Time.realtimeSinceStartup;
         }
     }
 

--
Gitblit v1.8.0