mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add fsctl min_idle_cpu and min-idle-cpu feature to refuse calls after the system fallse below a certian percentage of idle cpu
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16962 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
* this file does not exist!!!!
|
||||
*
|
||||
*/
|
||||
|
||||
#include "switch_profile.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <switch_private.h>
|
||||
#endif
|
||||
@@ -220,6 +223,9 @@ struct switch_runtime {
|
||||
uint32_t runlevel;
|
||||
uint32_t tipping_point;
|
||||
int32_t timer_affinity;
|
||||
switch_profile_timer_t *profile_timer;
|
||||
double profile_time;
|
||||
double min_idle_time;
|
||||
};
|
||||
|
||||
extern struct switch_runtime runtime;
|
||||
|
||||
Reference in New Issue
Block a user