Fix deficiency in 8433404
John Smith

John Smith commited on 2022-172 00:39:54
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -9,7 +9,7 @@
9 9
 ]]
10 10
 local function schedule(prompt, revtime, revsucc, conf)
11 11
     if revsucc and revsucc > 0 then
12
-        local ad = revtime - prompt.time
12
+        local ad = revtime - (prompt.time or revtime)
13 13
         return (conf:get("DelayRatio") or 2.5) ^ revsucc * (ad + math.max(40000 - 0.5 * ad, 0))
14 14
     else
15 15
         return 15
16 16