stats: fix stat spec
This commit is contained in:
parent
573ca012ab
commit
9bf1460a40
1 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,8 @@ def force_update do
|
||||||
@spec get_stats() :: %{
|
@spec get_stats() :: %{
|
||||||
domain_count: non_neg_integer(),
|
domain_count: non_neg_integer(),
|
||||||
status_count: non_neg_integer(),
|
status_count: non_neg_integer(),
|
||||||
user_count: non_neg_integer()
|
user_count: non_neg_integer(),
|
||||||
|
remote_user_count: non_neg_integer()
|
||||||
}
|
}
|
||||||
def get_stats do
|
def get_stats do
|
||||||
%{stats: stats} = GenServer.call(__MODULE__, :get_state)
|
%{stats: stats} = GenServer.call(__MODULE__, :get_state)
|
||||||
|
@ -60,7 +61,8 @@ def get_peers do
|
||||||
stats: %{
|
stats: %{
|
||||||
domain_count: non_neg_integer(),
|
domain_count: non_neg_integer(),
|
||||||
status_count: non_neg_integer(),
|
status_count: non_neg_integer(),
|
||||||
user_count: non_neg_integer()
|
user_count: non_neg_integer(),
|
||||||
|
remote_user_count: non_neg_integer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
def calculate_stat_data do
|
def calculate_stat_data do
|
||||||
|
|
Loading…
Reference in a new issue