From e8449db3d5efaba81b7315cf508f948d488943bf Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 15 五月 2019 20:09:08 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 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