mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-08 08:20:27 +00:00
Added checkDelay
to disknet
table
This commit is contained in:
parent
f7c4ad81a8
commit
b52041d20f
@ -4,8 +4,8 @@ local tArg = {...}
|
|||||||
|
|
||||||
disknet.mainPath = "disk/DISKNET" -- path of shared file
|
disknet.mainPath = "disk/DISKNET" -- path of shared file
|
||||||
local limitChannelsToModem = false -- if true, can only use number channels from 1 to 65535
|
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
|
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
|
local isUsingTweaked = false
|
||||||
if _HOST then
|
if _HOST then
|
||||||
@ -281,8 +281,8 @@ disknet.receive = function(channel, senderFilter)
|
|||||||
if output then
|
if output then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if checkDelay > 0 then
|
if disknet.checkDelay > 0 then
|
||||||
sleep(checkDelay)
|
sleep(disknet.checkDelay)
|
||||||
else
|
else
|
||||||
os.queueEvent("")
|
os.queueEvent("")
|
||||||
os.pullEvent("")
|
os.pullEvent("")
|
||||||
|
Loading…
Reference in New Issue
Block a user