counts the number of timer processes to start with; this number may * change during runtime due auto-scaling */
| 100 | /* counts the number of timer processes to start with; this number may |
| 101 | * change during runtime due auto-scaling */ |
| 102 | int 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*/ |
no outgoing calls
no test coverage detected