Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
librist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rist
librist
Commits
4fd2b3ea
Commit
4fd2b3ea
authored
Nov 18, 2020
by
Sergio Ammirata
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add peer type to advanced stats
parent
75e7ef3d
Pipeline
#39511
passed with stages
in 1 minute and 38 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/stats.c
src/stats.c
+1
-0
No files found.
src/stats.c
View file @
4fd2b3ea
...
...
@@ -63,6 +63,7 @@ void rist_sender_peer_statistics(struct rist_peer *peer)
cJSON_AddNumberToObject
(
peer_obj
,
"flow_id"
,
peer
->
adv_flow_id
);
cJSON_AddNumberToObject
(
peer_obj
,
"id"
,
peer
->
adv_peer_id
);
cJSON_AddStringToObject
(
peer_obj
,
"cname"
,
peer
->
receiver_name
);
cJSON_AddStringToObject
(
peer_obj
,
"type"
,
peer
->
is_data
?
"data"
:
"rtcp"
);
cJSON
*
json_stats
=
cJSON_AddObjectToObject
(
peer_obj
,
"stats"
);
cJSON_AddNumberToObject
(
json_stats
,
"quality"
,
Q
);
cJSON_AddNumberToObject
(
json_stats
,
"sent"
,
(
double
)
peer
->
stats_sender_instant
.
sent
);
...
...
ryci-us
@ryci-us
mentioned in issue
#73 (closed)
·
Nov 20, 2020
mentioned in issue
#73 (closed)
mentioned in issue #73
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment