Commit bbfffed8 authored by Sébastien's avatar Sébastien

erreur :)

parent 8319b600
......@@ -55,7 +55,8 @@ def main(host="0.0.0.0", port=7777):
mySocket.bind((host,port))
mySocket.listen(1)
while True:
# while True:
for i in range(3):
conn, addr = mySocket.accept()
LOG.debug("connection from: " + str(addr))
data = conn.recv(1024).decode()
......@@ -111,7 +112,7 @@ def get_users_linux():
users = f"{nb}"
except Exception:
users = "?"
LOG.debug(f"utilisateurs connectés: {nb}")
LOG.debug(f"utilisateurs connectés: {users}")
return users
def get_users_windows():
......@@ -122,7 +123,7 @@ def get_users_windows():
users = f"{nb}"
except Exception:
users = "?"
LOG.debug(f"utilisateurs connectés: {nb}")
LOG.debug(f"utilisateurs connectés: {users}")
return users
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment