Skip to content

Commit

Permalink
Update injective-peggo-prometheus-exporter.py
Browse files Browse the repository at this point in the history
Fix delay formula
  • Loading branch information
CharlesJUDITH authored Dec 26, 2023
1 parent 9940310 commit f68f71a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():

lon = int(lon_data['state']['last_observed_nonce']) if 'state' in lon_data and 'last_observed_nonce' in lon_data['state'] else None
lce = int(lce_data['last_claim_event']['ethereum_event_nonce']) if 'last_claim_event' in lce_data and 'ethereum_event_nonce' in lce_data['last_claim_event'] else None
delay = lce - lon
delay = lon - lce
LATENCY_GAUGE.set(delay)

else:
Expand Down

0 comments on commit f68f71a

Please sign in to comment.