Don't frob timers unless SmartSchedule is running
This commit is contained in:
parent
e94ab0b502
commit
0e9ef65fa5
|
@ -1520,6 +1520,8 @@ SmartScheduleStopTimer (void)
|
||||||
#ifdef SMART_SCHEDULE_POSSIBLE
|
#ifdef SMART_SCHEDULE_POSSIBLE
|
||||||
struct itimerval timer;
|
struct itimerval timer;
|
||||||
|
|
||||||
|
if (SmartScheduleDisable)
|
||||||
|
return;
|
||||||
timer.it_interval.tv_sec = 0;
|
timer.it_interval.tv_sec = 0;
|
||||||
timer.it_interval.tv_usec = 0;
|
timer.it_interval.tv_usec = 0;
|
||||||
timer.it_value.tv_sec = 0;
|
timer.it_value.tv_sec = 0;
|
||||||
|
@ -1534,6 +1536,8 @@ SmartScheduleStartTimer (void)
|
||||||
#ifdef SMART_SCHEDULE_POSSIBLE
|
#ifdef SMART_SCHEDULE_POSSIBLE
|
||||||
struct itimerval timer;
|
struct itimerval timer;
|
||||||
|
|
||||||
|
if (SmartScheduleDisable)
|
||||||
|
return;
|
||||||
timer.it_interval.tv_sec = 0;
|
timer.it_interval.tv_sec = 0;
|
||||||
timer.it_interval.tv_usec = SmartScheduleInterval * 1000;
|
timer.it_interval.tv_usec = SmartScheduleInterval * 1000;
|
||||||
timer.it_value.tv_sec = 0;
|
timer.it_value.tv_sec = 0;
|
||||||
|
|
Loading…
Reference in New Issue