From: Sam Stenvall Date: Tue, 1 Sep 2015 21:35:52 +0000 (+0300) Subject: include total bytes sent/received in subscription messages. Clients who want to poll... X-Git-Tag: v4.2.1~2153 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80c4178610d196a8f5b58f7bbdfcf28bb67cb851;p=thirdparty%2Ftvheadend.git include total bytes sent/received in subscription messages. Clients who want to poll more frequently than once per second can use these fields to calculate the average bitrate regardless of polling frequency. --- diff --git a/src/subscriptions.c b/src/subscriptions.c index 356d8783a..04906484a 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -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; }