fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/38296?usp=email )


Change subject: sctp_proxy: fix calling gauge_dec() on a counter
......................................................................

sctp_proxy: fix calling gauge_dec() on a counter

A follow-up commit will add type hints to prevent such errors.

Change-Id: Ic1e29061838e9c96cc4687308c6c56db7011ae9f
---
M src/sctp_proxy.erl
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw 
refs/changes/96/38296/1

diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl
index c085703..9f9b746 100644
--- a/src/sctp_proxy.erl
+++ b/src/sctp_proxy.erl
@@ -258,7 +258,7 @@

 sctp_send_pending([Data | Pending], S0) ->
     S1 = sctp_send(Data, S0),
-    s1gw_metrics:gauge_dec(?S1GW_CTR_S1AP_PROXY_UPLINK_PACKETS_QUEUED),
+    s1gw_metrics:gauge_dec(?S1GW_GAUGE_S1AP_PROXY_UPLINK_PACKETS_QUEUED),
     sctp_send_pending(Pending, S1);

 sctp_send_pending([], S) ->

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/38296?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ic1e29061838e9c96cc4687308c6c56db7011ae9f
Gerrit-Change-Number: 38296
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to