Changeset

6577:1e749832ed3b

statsmanager: Perform an initial collection right after startup is completed
author Kim Alvefur <zash@zash.se>
date Sun, 22 Feb 2015 18:44:48 +0100
parents 6576:b7796a46aec2
children 6580:74946f050209
files core/statsmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/statsmanager.lua	Sat Feb 21 10:34:56 2015 +0100
+++ b/core/statsmanager.lua	Sun Feb 22 18:44:48 2015 +0100
@@ -48,6 +48,7 @@
 	end
 
 	timer.add_task(stats_interval, collect);
+	prosody.events.add_handler("server-started", function () collect() end, -1);
 else
 	log("debug", "Statistics collection is disabled");
 	-- nop