mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 07:04:56 -04:00
Fix federation inbound age metric. (#10355)
We should be reporting the age rather than absolute timestamp.
This commit is contained in:
parent
c2c364f27f
commit
879d8c1ee1
2 changed files with 4 additions and 1 deletions
|
@ -1230,7 +1230,9 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas
|
|||
"SELECT coalesce(min(received_ts), 0) FROM federation_inbound_events_staging"
|
||||
)
|
||||
|
||||
(age,) = txn.fetchone()
|
||||
(received_ts,) = txn.fetchone()
|
||||
|
||||
age = self._clock.time_msec() - received_ts
|
||||
|
||||
return count, age
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue