diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-04-24 17:02:35 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 00:27:08 +0000 | 
| commit | 181232b555bb8074c7509976ca18618f7e6a7aaf (patch) | |
| tree | 3719b295cbf68425b7e4522ea681005a78e9ff73 /vrrpd/vrrp_vty.c | |
| parent | 33b010a97693cef8bbe120d8205099b581e573fe (diff) | |
vrrpd: fix magnitude error when removing adver_int
When resetting advertisement interval back to the default, we were
dividing centiseconds by 10 instead of milliseconds.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp_vty.c')
| -rw-r--r-- | vrrpd/vrrp_vty.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c index 296a8a67dd..9cd1be245e 100644 --- a/vrrpd/vrrp_vty.c +++ b/vrrpd/vrrp_vty.c @@ -144,7 +144,7 @@ DEFPY(vrrp_advertisement_interval,  	VTY_DECLVAR_CONTEXT(interface, ifp);  	struct vrrp_vrouter *vr; -	uint16_t newadvint = no ? vd.advertisement_interval : +	uint16_t newadvint = no ? vd.advertisement_interval * 10:  				  advertisement_interval;  	if (newadvint % 10 != 0) {  | 
