Store probe from zero

auto_join_3.3
Roman Drozd 2020-05-07 03:06:45 +02:00
parent 71562cf57d
commit 49083376e2
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class NetworkIndicator extends React.Component
maxBitrate : 0, maxBitrate : 0,
avgBitrate : 0, avgBitrate : 0,
medBitrate : 0, medBitrate : 0,
probeCount : 1, probeCount : 0,
probeLimit : 3 probeLimit : 3
}; };
} }
@ -170,7 +170,7 @@ class NetworkIndicator extends React.Component
this.setState({ this.setState({
probe, probe,
probeCount: (probeCount < probeLimit) ? probeCount + 1 : 1 , probeCount: (probeCount < probeLimit - 1) ? probeCount + 1 : 0 ,
currBitrate : (send) ? Math.round(send.recvBitrate / 1024 / 8) : 0, currBitrate : (send) ? Math.round(send.recvBitrate / 1024 / 8) : 0,
maxBitrate, maxBitrate,
avgBitrate, avgBitrate,