Length of data on compressed history
This commit is contained in:
@@ -7,7 +7,6 @@ from time import time
|
||||
from objects import glob
|
||||
|
||||
flights = {}
|
||||
#flight_data_cache = b""
|
||||
clients = set()
|
||||
|
||||
STRUCTS = {
|
||||
@@ -105,8 +104,9 @@ async def handle(ws, path):
|
||||
await send_error(b"Flight not found")
|
||||
else:
|
||||
data = flights[uuid].get_all()
|
||||
await cli.ws.send(struct.pack(b"<B%ds" % len(data),
|
||||
await cli.ws.send(struct.pack(b"<BI%ds" % len(data),
|
||||
3, # packet_id
|
||||
len(data),
|
||||
data
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user