diff options
author | Will Hunt <half-shot@molrams.com> | 2018-09-17 16:35:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 16:35:18 +0100 |
commit | 2b39494cd5a0a93811024c31d8c41e7b5e9e21a3 (patch) | |
tree | 52800f6489bb31aab230ba8a7a9be00799243b73 /synapse | |
parent | README: run python_dependencies with -m (diff) | |
download | synapse-2b39494cd5a0a93811024c31d8c41e7b5e9e21a3.tar.xz |
Add python_version phone home stat
Diffstat (limited to 'synapse')
-rwxr-xr-x | synapse/app/homeserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index ac97e19649..3d9d303839 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -457,6 +457,8 @@ def run(hs): stats["homeserver"] = hs.config.server_name stats["timestamp"] = now stats["uptime_seconds"] = uptime + version = sys.version_info + stats["python_version"] = (version.major) + (version.minor / 10) + (version.micro / 100) stats["total_users"] = yield hs.get_datastore().count_all_users() total_nonbridged_users = yield hs.get_datastore().count_nonbridged_users() |