MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / timer_count_processes

Function timer_count_processes

timer.c:102–113  ·  view source on GitHub ↗

counts the number of timer processes to start with; this number may * change during runtime due auto-scaling */

Source from the content-addressed store, hash-verified

100/* counts the number of timer processes to start with; this number may
101 * change during runtime due auto-scaling */
102int timer_count_processes(unsigned int *extra)
103{
104 if (extra) *extra = 0;
105
106 if (s_profile && extra) {
107 /* how many can be forked over th number of procs to start with ?*/
108 if (s_profile->max_procs > timer_workers_no)
109 *extra = s_profile->max_procs - timer_workers_no;
110 }
111
112 return 2/*keeper & trigger*/ + timer_workers_no /*workers to start with*/;
113}
114
115
116/* ret 0 on success, <0 on error*/

Callers 3

count_child_processesFunction · 0.85
mod_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected