Skip to content

Commit f651eb7

Browse files
committed
Removed os.time()
1 parent 790610f commit f651eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Scripts/net/DCSServerBot/DCSServerBot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dcsbot.sendBotTable = dcsbot.sendBotTable or function (tbl, channel)
4747
return
4848
end
4949

50-
local msg_id = tostring(os.time())
50+
local msg_id = tostring(math.floor(socket.gettime() * 1e6))
5151
local total_parts = math.ceil(#msg / MAX_CHUNK)
5252

5353
for part = 1, total_parts do

Scripts/net/DCSServerBot/DCSServerBotUtils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function sendBotTable(tbl, channel)
4747
return
4848
end
4949

50-
local msg_id = tostring(os.time())
50+
local msg_id = tostring(math.floor(socket.gettime() * 1e6))
5151
local total_parts = math.ceil(#msg / MAX_CHUNK)
5252

5353
for part = 1, total_parts do

0 commit comments

Comments
 (0)