diff --git a/pfcwd/main.py b/pfcwd/main.py index a969eda431ba..c12c93a58c40 100644 --- a/pfcwd/main.py +++ b/pfcwd/main.py @@ -359,7 +359,7 @@ def start_default(self): port_num = len(list(self.config_db.get_table('PORT').keys())) # Paramter values positively correlate to the number of ports. - multiply = max(1, (port_num-1)/DEFAULT_PORT_NUM+1) + multiply = max(1, (port_num-1)//DEFAULT_PORT_NUM+1) pfcwd_info = { 'detection_time': DEFAULT_DETECTION_TIME * multiply, 'restoration_time': DEFAULT_RESTORATION_TIME * multiply,