From 1baf68581d791a30def4386e25d409a62f2c5bc3 Mon Sep 17 00:00:00 2001 From: "Sebastian L." Date: Thu, 16 Jan 2025 13:50:45 +0100 Subject: [PATCH] Re-add forgotten/lost multigraph line --- plugins/synapse/synapse_ | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/synapse/synapse_ b/plugins/synapse/synapse_ index 976ce74e..1f4ab042 100644 --- a/plugins/synapse/synapse_ +++ b/plugins/synapse/synapse_ @@ -176,6 +176,7 @@ fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${POR ROOMS=$(fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${PORT}${ADMIN_API_PATH}/v1/rooms?limit=${QUERY_LIMIT}") REPORTS=$(fetch_url -H "Authorization: Bearer ${AUTH_TOKEN}" "${SCHEME}${HOMESERVER}:${PORT}${ADMIN_API_PATH}/v1/event_reports" | jq .total) +echo "multigraph synapse_users_${CLEANHOMESERVER}" if total="$(jq -r .total "$USERS_FILE" | grep -E "^[0-9]+$")"; then puppets="$(jq -r '.users[] | select(.deactivated==false) | select(.user_type!="bot")' "$USERS_FILE" | grep -c '"last_seen_ts": null')" bots="$(jq -r '.users[] | select(.deactivated==false)' "$USERS_FILE" | grep -c '"user_type": "bot"')"