Bugfix: When changing transmit mode of a port, the avg rates should be recalculated

This commit is contained in:
Srivats P. 2015-05-08 21:49:43 +05:30
parent 1dbc4120c9
commit 77fe49bf10

View File

@ -57,7 +57,16 @@ Port::~Port()
void Port::updatePortConfig(OstProto::Port *port)
{
bool recalc = false;
if (port->has_transmit_mode()
&& port->transmit_mode() != d.transmit_mode())
recalc = true;
d.MergeFrom(*port);
if (recalc)
recalculateAverageRates();
}
void Port::updateStreamOrdinalsFromIndex()