mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Added missing linefeeds into pid/filter statistics.
This commit is contained in:
parent
e4730e4e66
commit
2fae82e107
5
device.c
5
device.c
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.c,v 1.57 2007/10/07 22:54:09 rahrenbe Exp $
|
* $Id: device.c,v 1.58 2007/10/08 12:30:53 rahrenbe Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -106,6 +106,9 @@ cString cIptvDevice::GetInformation()
|
|||||||
*secfilters[i]->GetStatistic(),
|
*secfilters[i]->GetStatistic(),
|
||||||
((i + 1) % 2) ? '\t' : '\n');
|
((i + 1) % 2) ? '\t' : '\n');
|
||||||
}
|
}
|
||||||
|
// make sure it ends with linefeed
|
||||||
|
if (!endswith(*filterInfo, "\n"))
|
||||||
|
filterInfo = cString::sprintf("%s%c", *filterInfo, '\n');
|
||||||
// generate information string
|
// generate information string
|
||||||
return cString::sprintf("IPTV device #%d (CardIndex: %d)\nSource: %s\n%s\n%s%s",
|
return cString::sprintf("IPTV device #%d (CardIndex: %d)\nSource: %s\n%s\n%s%s",
|
||||||
deviceIndex, CardIndex(), pIptvStreamer ?
|
deviceIndex, CardIndex(), pIptvStreamer ?
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: statistics.c,v 1.11 2007/10/08 12:25:30 rahrenbe Exp $
|
* $Id: statistics.c,v 1.12 2007/10/08 12:30:53 rahrenbe Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -88,6 +88,8 @@ cString cIptvDeviceStatistics::GetStatistic()
|
|||||||
(long)(mostActivePids[i].DataAmount / divider),
|
(long)(mostActivePids[i].DataAmount / divider),
|
||||||
unit, ((i + 1) % 2) ? '\t' : '\n');
|
unit, ((i + 1) % 2) ? '\t' : '\n');
|
||||||
}
|
}
|
||||||
|
if (!endswith(*info, "\n"))
|
||||||
|
info = cString::sprintf("%s%c", *info, '\n');
|
||||||
dataBytes = 0;
|
dataBytes = 0;
|
||||||
memset(&mostActivePids, '\0', sizeof(mostActivePids));
|
memset(&mostActivePids, '\0', sizeof(mostActivePids));
|
||||||
return info;
|
return info;
|
||||||
|
Loading…
Reference in New Issue
Block a user