[sr-dev] git:5.2:a519a289: statsc: debug message when fetching stats values

Henning Westerholt hw at skalatan.de
Fri Jan 24 16:55:39 CET 2020


Module: kamailio
Branch: 5.2
Commit: a519a289cccf89a06bb7fa3857fef5505049a277
URL: https://github.com/kamailio/kamailio/commit/a519a289cccf89a06bb7fa3857fef5505049a277

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-01-24T16:42:17+01:00

statsc: debug message when fetching stats values

(cherry picked from commit a463c53e767114567ff25f0fe50115da0e3d0045)

---

Modified: src/modules/statsc/statsc_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a519a289cccf89a06bb7fa3857fef5505049a277.diff
Patch: https://github.com/kamailio/kamailio/commit/a519a289cccf89a06bb7fa3857fef5505049a277.patch

---

diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c
index 75c88c9cd5..4755b77e2b 100644
--- a/src/modules/statsc/statsc_mod.c
+++ b/src/modules/statsc/statsc_mod.c
@@ -257,6 +257,7 @@ void statsc_timer(unsigned int ticks, void *param)
 	statsc_nmap_t *sm = NULL;
 	time_t tn;
 	int n;
+	int i;
 
 	if(_statsc_info==NULL || _statsc_info->slist==NULL) {
 		LM_ERR("statsc not initialized\n");
@@ -270,8 +271,12 @@ void statsc_timer(unsigned int ticks, void *param)
 	LM_DBG("statsc timer - time: %lu - ticks: %u - index: %d - steps: %llu\n",
 			(unsigned long)tn, ticks, n, (unsigned long long)_statsc_info->steps);
 
+	i = 0;
 	for(sm=_statsc_info->slist->next; sm!=NULL; sm=sm->next) {
+		LM_DBG("fetching value for: [%.*s] - step [%d]\n", sm->rname.len,
+				sm->rname.s, i);
 		statsc_svalue(&sm->rname, sm->vals + n);
+		i++;
 	}
 	_statsc_info->steps++;
 }




More information about the sr-dev mailing list