diff --git a/receiver_estimated_maximum_bitrate.go b/receiver_estimated_maximum_bitrate.go index 683db1c..fd0015b 100644 --- a/receiver_estimated_maximum_bitrate.go +++ b/receiver_estimated_maximum_bitrate.go @@ -268,7 +268,7 @@ func (p *ReceiverEstimatedMaximumBitrate) Header() Header { // String prints the REMB packet in a human-readable format. func (p *ReceiverEstimatedMaximumBitrate) String() string { // Keep a table of powers to units for fast conversion. - bitUnits := []string{"b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb"} + bitUnits := []string{"b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb"} // Do some unit conversions because b/s is far too difficult to read. bitrate := p.Bitrate diff --git a/receiver_estimated_maximum_bitrate_test.go b/receiver_estimated_maximum_bitrate_test.go index 8f1ec26..36e7cfc 100644 --- a/receiver_estimated_maximum_bitrate_test.go +++ b/receiver_estimated_maximum_bitrate_test.go @@ -127,4 +127,6 @@ func TestReceiverEstimatedMaximumBitrateOverflow(t *testing.T) { err = packet.Unmarshal(input) assert.NoError(err) assert.Equal(math.Float32frombits(0x62800000), packet.Bitrate) + + assert.Equal("ReceiverEstimatedMaximumBitrate 0 1.18 Zb/s", packet.String()) }