Collect stats immediately after init
authorrinpatch <rinpatch@sdf.org>
Wed, 14 Aug 2019 22:01:13 +0000 (01:01 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 14 Aug 2019 22:01:13 +0000 (01:01 +0300)
lib/pleroma/stats.ex

index a3b8a4d669783e6c19b4a56f78c39e6eb394a1d6..df80fbaa41f0d62fd252444b16cef22325e1d9cc 100644 (file)
@@ -32,7 +32,7 @@ defmodule Pleroma.Stats do
   end
 
   def init(args) do
-    Process.send_after(self(), :run_update, @interval)
+    Process.send(self(), :run_update, [])
     {:ok, args}
   end