judger_version返回字符串

This commit is contained in:
virusdefender 2016-10-04 12:37:27 +08:00
parent 2884f7bf5a
commit d2e4e44d42

View File

@ -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():