Skip to content
Snippets Groups Projects
Unverified Commit 01ba7b38 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #6336 from matrix-org/erikj/fix_phone_home_stats

Fix phone home stats
parents 5570d1c9 b437eb48
No related branches found
No related tags found
No related merge requests found
Remove the dependency on psutil and replace functionality with the stdlib `resource` module.
...@@ -636,7 +636,7 @@ def run(hs): ...@@ -636,7 +636,7 @@ def run(hs):
if hs.config.report_stats: if hs.config.report_stats:
logger.info("Scheduling stats reporting for 3 hour intervals") logger.info("Scheduling stats reporting for 3 hour intervals")
clock.looping_call(start_phone_stats_home, 3 * 60 * 60 * 1000, hs, stats) clock.looping_call(start_phone_stats_home, 3 * 60 * 60 * 1000)
# We need to defer this init for the cases that we daemonize # We need to defer this init for the cases that we daemonize
# otherwise the process ID we get is that of the non-daemon process # otherwise the process ID we get is that of the non-daemon process
...@@ -644,7 +644,7 @@ def run(hs): ...@@ -644,7 +644,7 @@ def run(hs):
# We wait 5 minutes to send the first set of stats as the server can # We wait 5 minutes to send the first set of stats as the server can
# be quite busy the first few minutes # be quite busy the first few minutes
clock.call_later(5 * 60, start_phone_stats_home, hs, stats) clock.call_later(5 * 60, start_phone_stats_home)
_base.start_reactor( _base.start_reactor(
"synapse-homeserver", "synapse-homeserver",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment