wf_akkoma/patches/wip_15_stats-fix-stat-spec.patch
Oneric 0e55849a54 Regresh and extend WIP perf patches
This should hopefully fix valid Announces/Likes/etc being dropped
sometimes due to intermittent network errors while resolving the
referenced object.

Additionally this now includes ap_enabled purge, since it proved buggy
and the resulting logs are distracting while screening for issues with
the WIP patches.
2024-12-14 05:00:23 +01:00

36 lines
1.1 KiB
Diff

From 97e070b68ad4924516cceaa3e897251daf18c6ee Mon Sep 17 00:00:00 2001
From: Oneric <oneric@oneric.stub>
Date: Sun, 24 Nov 2024 17:45:08 +0100
Subject: [PATCH 15/22] stats: fix stat spec
---
lib/pleroma/stats.ex | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/stats.ex b/lib/pleroma/stats.ex
index c47a0f9de..88740d155 100644
--- a/lib/pleroma/stats.ex
+++ b/lib/pleroma/stats.ex
@@ -39,7 +39,8 @@ def force_update do
@spec get_stats() :: %{
domain_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
%{stats: stats} = GenServer.call(__MODULE__, :get_state)
@@ -60,7 +61,8 @@ def get_peers do
stats: %{
domain_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
--
2.39.5