Bugfix: When changing transmit mode of a port, the avg rates should be recalculated
This commit is contained in:
parent
1dbc4120c9
commit
77fe49bf10
@ -57,7 +57,16 @@ Port::~Port()
|
|||||||
|
|
||||||
void Port::updatePortConfig(OstProto::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);
|
d.MergeFrom(*port);
|
||||||
|
|
||||||
|
if (recalc)
|
||||||
|
recalculateAverageRates();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Port::updateStreamOrdinalsFromIndex()
|
void Port::updateStreamOrdinalsFromIndex()
|
||||||
|
Loading…
Reference in New Issue
Block a user