mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-28 21:31:43 +00:00
judger_version返回字符串
This commit is contained in:
parent
2884f7bf5a
commit
d2e4e44d42
2
utils.py
2
utils.py
@ -12,7 +12,7 @@ def server_info():
|
||||
"cpu": psutil.cpu_percent(),
|
||||
"cpu_core": psutil.cpu_count(),
|
||||
"memory": psutil.virtual_memory().percent,
|
||||
"judger_version": ((ver >> 16) & 0xff, (ver >> 8) & 0xff, ver & 0xff)}
|
||||
"judger_version": ".".join([str((ver >> 16) & 0xff), str((ver >> 8) & 0xff), str(ver & 0xff)])}
|
||||
|
||||
|
||||
def get_token():
|
||||
|
Loading…
Reference in New Issue
Block a user