Merge pull request #79 from systemli/fix-exporter-crashing

🐛 Fix exporter crashing during json parsing
This commit is contained in:
Dwight Donovan Benvenuto 2022-02-20 12:30:30 +01:00 committed by GitHub
commit dcc19c2796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -48,10 +48,10 @@ type videoBridgeStats struct {
OctoVersion int `json:"octo_version"`
OctoConferences int `json:"octo_conferences"`
OctoEndpoints int `json:"octo_endpoints"`
OctoReceiveBitrate int `json:"octo_receive_bitrate"`
OctoReceivePacketRate int `json:"octo_receive_packet_rate"`
OctoSendBitrate int `json:"octo_send_bitrate"`
OctoSendPacketRate int `json:"octo_send_packet_rate"`
OctoReceiveBitrate float64 `json:"octo_receive_bitrate"`
OctoReceivePacketRate float64 `json:"octo_receive_packet_rate"`
OctoSendBitrate float64 `json:"octo_send_bitrate"`
OctoSendPacketRate float64 `json:"octo_send_packet_rate"`
TotalBytesReceivedOcto int `json:"total_bytes_received_octo"`
TotalBytesSentOcto int `json:"total_bytes_sent_octo"`
TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"`

View file

@ -190,9 +190,9 @@ jitsi_conference_sizes{conference_size="21"} 0
"loss_rate_upload": 0.5,
"octo_conferences": 0,
"octo_endpoints": 0,
"octo_receive_bitrate": 0,
"octo_receive_bitrate": 0.0,
"octo_receive_packet_rate": 0,
"octo_send_bitrate": 0,
"octo_send_bitrate": 0.0,
"octo_send_packet_rate": 0,
"octo_version": 1,
"packet_rate_download": 0,