summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorWill Hunt <half-shot@molrams.com>2018-09-17 17:09:06 +0100
committerGitHub <noreply@github.com>2018-09-17 17:09:06 +0100
commit9a1cceeca90e6ae52433d50dfd866d68836f686e (patch)
tree93b0beead126dfff2e2c9336c631cb108a1eaaeb /synapse/app/homeserver.py
parentAdd python_version phone home stat (diff)
downloadsynapse-9a1cceeca90e6ae52433d50dfd866d68836f686e.tar.xz
Use a string for versions
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/homeserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 3d9d303839..be9be423f0 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -458,7 +458,7 @@ def run(hs):
         stats["timestamp"] = now
         stats["uptime_seconds"] = uptime
         version = sys.version_info
-        stats["python_version"] = (version.major) + (version.minor / 10) + (version.micro / 100)
+        stats["python_version"] = "{}.{}.{}".format(version.major, version.minor, version.micro)
         stats["total_users"] = yield hs.get_datastore().count_all_users()
 
         total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users()