Commit aa2bc25e authored by Bonnegent Sebastien's avatar Bonnegent Sebastien

séparateur de champs pour les sessions

parent 5be11a69
...@@ -78,7 +78,7 @@ def main(host="0.0.0.0", port=7777): ...@@ -78,7 +78,7 @@ def main(host="0.0.0.0", port=7777):
tmp = [] tmp = []
for user in psutil.users(): for user in psutil.users():
timestamp = int(user.started) timestamp = int(user.started)
tmp.append(f"{user.name}-{timestamp}") tmp.append(f"{user.name}:{timestamp}")
os_users = ",".join(tmp) os_users = ",".join(tmp)
# message = "%s;%s;%s" % (os_name, os_version, os_users) # message = "%s;%s;%s" % (os_name, os_version, os_users)
message = f"{os_name};{os_version};{os_users_count};{os_users}" message = f"{os_name};{os_version};{os_users_count};{os_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