From 4b0d387216a0bf74c529a9e0a3caab089f526fcf Mon Sep 17 00:00:00 2001 From: Tornac Date: Thu, 7 May 2020 20:40:02 -0700 Subject: [PATCH] Changed os.time to os.clock. Reused some this code for the pupatt addon that towbes and I worked on. Found out that os.time appears to go down to the second. os.clock is used on sendall and appears to recognize fractions of seconds. --- bluemage.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluemage.lua b/bluemage.lua index 7e196e5..206efe6 100644 --- a/bluemage.lua +++ b/bluemage.lua @@ -333,8 +333,8 @@ end -- desc: Processes the packet queue to be sent. ---------------------------------------------------------------------------------------------------- function bluemage.process_queue() - if (os.time() >= (bluemage.timer + bluemage.delay)) then - bluemage.timer = os.time(); + if (os.clock() >= (bluemage.timer + bluemage.delay)) then + bluemage.timer = os.clock(); -- Ensure the queue has something to process.. if (#bluemage.queue > 0) then