Change json fields to float64

Change LossRateDownload and LossRateUpload to float64.
This commit is contained in:
danielcb 2020-10-22 15:19:01 +02:00 committed by GitHub
parent 7abef987ac
commit 10bacf86e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,8 @@ type videoBridgeStats struct {
Threads int `json:"threads"` Threads int `json:"threads"`
BitRateDownload int `json:"bit_rate_download"` BitRateDownload int `json:"bit_rate_download"`
BitRateUpload int `json:"bit_rate_upload"` BitRateUpload int `json:"bit_rate_upload"`
PacketRateDownload int `json:"packet_rate_download"` PacketRateDownload float64 `json:"packet_rate_download"`
PacketRateUpload int `json:"packet_rate_upload"` PacketRateUpload float64 `json:"packet_rate_upload"`
LossRateDownload float64 `json:"loss_rate_download"` LossRateDownload float64 `json:"loss_rate_download"`
LossRateUpload float64 `json:"loss_rate_upload"` LossRateUpload float64 `json:"loss_rate_upload"`
JitterAggregate float64 `json:"jitter_aggregate"` JitterAggregate float64 `json:"jitter_aggregate"`