Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
include total bytes sent/received in subscription messages. Clients w…
…ho want to poll more frequently than once per second can use these fields to calculate the average bitrate regardless of polling frequency.
  • Loading branch information
Sam Stenvall authored and perexg committed Sep 2, 2015
1 parent 26dabb7 commit 80c4178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/subscriptions.c
Expand Up @@ -891,6 +891,8 @@ subscription_create_msg(th_subscription_t *s)

htsmsg_add_u32(m, "in", s->ths_bytes_in_prev);
htsmsg_add_u32(m, "out", s->ths_bytes_out_prev);
htsmsg_add_s64(m, "total_in", s->ths_total_bytes_in);
htsmsg_add_s64(m, "total_out", s->ths_total_bytes_out);

return m;
}
Expand Down

0 comments on commit 80c4178

Please sign in to comment.