Refactoring connection stats (#384)

This commit is contained in:
Raja Subramanian
2022-01-29 00:55:00 +05:30
committed by GitHub
parent 9747243ce2
commit 5b57522c05
9 changed files with 299 additions and 374 deletions
-5
View File
@@ -45,11 +45,6 @@ func UnpackDataTrackLabel(packed string) (peerID livekit.ParticipantID, trackID
return
}
// converts a fixed point number to the number part of %
func FixedPointToPercent(frac uint8) uint32 {
return (uint32(frac) * 100) >> 8
}
func ToProtoParticipants(participants []types.LocalParticipant) []*livekit.ParticipantInfo {
infos := make([]*livekit.ParticipantInfo, 0, len(participants))
for _, op := range participants {