mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-11 23:51:03 +02:00
sectionsd: add timing info to 'reading saved EPG' message
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1406 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -4494,10 +4494,12 @@ static void *insertEventsfromFile(void *)
|
|||||||
|
|
||||||
indexname = epg_dir + "index.xml";
|
indexname = epg_dir + "index.xml";
|
||||||
|
|
||||||
printdate_ms(stdout); printf("[sectionsd] Reading Information from file %s:\n", indexname.c_str());
|
|
||||||
xmlDocPtr index_parser = parseXmlFile(indexname.c_str());
|
xmlDocPtr index_parser = parseXmlFile(indexname.c_str());
|
||||||
|
|
||||||
if (index_parser != NULL) {
|
if (index_parser != NULL) {
|
||||||
|
time_t now = time_monotonic_ms();
|
||||||
|
printdate_ms(stdout);
|
||||||
|
printf("[sectionsd] Reading Information from file %s:\n", indexname.c_str());
|
||||||
|
|
||||||
eventfile = xmlDocGetRootElement(index_parser)->xmlChildrenNode;
|
eventfile = xmlDocGetRootElement(index_parser)->xmlChildrenNode;
|
||||||
|
|
||||||
@@ -4623,8 +4625,10 @@ static void *insertEventsfromFile(void *)
|
|||||||
eventfile = eventfile->xmlNextNode;
|
eventfile = eventfile->xmlNextNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
printdate_ms(stdout); printf("[sectionsd] Reading Information finished\n");
|
|
||||||
xmlFreeDoc(index_parser);
|
xmlFreeDoc(index_parser);
|
||||||
|
printdate_ms(stdout);
|
||||||
|
printf("[sectionsd] Reading Information finished after %ld miliseconds\n",
|
||||||
|
time_monotonic_ms()-now);
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
Reference in New Issue
Block a user