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:
seife
2011-04-16 22:11:21 +00:00
parent b52d414d97
commit 48ac30ddb9

View File

@@ -4494,10 +4494,12 @@ static void *insertEventsfromFile(void *)
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());
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;
@@ -4623,8 +4625,10 @@ static void *insertEventsfromFile(void *)
eventfile = eventfile->xmlNextNode;
}
printdate_ms(stdout); printf("[sectionsd] Reading Information finished\n");
xmlFreeDoc(index_parser);
printdate_ms(stdout);
printf("[sectionsd] Reading Information finished after %ld miliseconds\n",
time_monotonic_ms()-now);
}
pthread_exit(NULL);