@@ -1018,6 +1018,7 @@ def do_main_loop(self):
1018
1018
logger .info ("pause duration: %.2f" , self .pause_duration )
1019
1019
1020
1020
# For the maximum expected loop duration
1021
+ self .maximum_loop_duration = 1.1 * self .maximum_loop_duration
1021
1022
logger .info ("maximum expected loop duration: %.2f" , self .maximum_loop_duration )
1022
1023
1023
1024
# Treatments before starting the main loop...
@@ -1113,11 +1114,11 @@ def do_main_loop(self):
1113
1114
1114
1115
pause = self .maximum_loop_duration - loop_duration
1115
1116
if loop_duration > self .maximum_loop_duration :
1116
- logger .warning ("The %s %s loop exceeded the maximum expected loop duration (%.2f). "
1117
- "The last loop needed %.2f seconds to execute. "
1118
- "You should try to reduce the load on this %s." ,
1119
- self .type , self .name , self .maximum_loop_duration ,
1120
- loop_duration , self .type )
1117
+ logger .info ("The %s %s loop exceeded the maximum expected loop duration (%.2f). "
1118
+ "The last loop needed %.2f seconds to execute. "
1119
+ "You should try to reduce the load on this %s." ,
1120
+ self .type , self .name , self .maximum_loop_duration ,
1121
+ loop_duration , self .type )
1121
1122
# Make a very very short pause ...
1122
1123
pause = 0.01
1123
1124
0 commit comments