From b52041d20f9d95c1cad476252ac0a2bc80343321 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sat, 28 Nov 2020 01:20:49 -0500 Subject: [PATCH] Added `checkDelay` to `disknet` table --- disknet.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disknet.lua b/disknet.lua index e5b8a41..32c36c9 100644 --- a/disknet.lua +++ b/disknet.lua @@ -4,8 +4,8 @@ local tArg = {...} disknet.mainPath = "disk/DISKNET" -- path of shared file local limitChannelsToModem = false -- if true, can only use number channels from 1 to 65535 -local checkDelay = 0.2 -- amount of time (seconds) between checking the file -- if 0, checks super fast so don't do that local maximumBufferSize = 64 -- largest amount of messages per channel buffered +disknet.checkDelay = 0.2 -- amount of time (seconds) between checking the file -- if 0, checks super fast so don't do that local isUsingTweaked = false if _HOST then @@ -281,8 +281,8 @@ disknet.receive = function(channel, senderFilter) if output then break else - if checkDelay > 0 then - sleep(checkDelay) + if disknet.checkDelay > 0 then + sleep(disknet.checkDelay) else os.queueEvent("") os.pullEvent("")