mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Kbps: Remove the union for kbps slice
This commit is contained in:
parent
98706f793e
commit
b4619e3393
2 changed files with 16 additions and 21 deletions
|
@ -65,15 +65,11 @@ public:
|
|||
class SrsKbpsSlice
|
||||
{
|
||||
private:
|
||||
union slice_io {
|
||||
ISrsProtocolStatistic* in;
|
||||
ISrsProtocolStatistic* out;
|
||||
};
|
||||
SrsWallClock* clk;
|
||||
public:
|
||||
// the slice io used for SrsKbps to invoke,
|
||||
// the SrsKbpsSlice itself never use it.
|
||||
slice_io io;
|
||||
ISrsProtocolStatistic* io;
|
||||
// session startup bytes
|
||||
// @remark, use total_bytes() to get the total bytes of slice.
|
||||
int64_t bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue