diff options
Diffstat (limited to 'update.c')
-rw-r--r-- | update.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1409,6 +1409,9 @@ int cUpdate::refreshEpg(const char* forChannelId, int maxTries) uint64_t start = cTimeMs::Now(); cDbStatement* select = 0; + if (Epg2VdrConfig.loglevel >= 5) + connection->showStat("before refresh"); + // lookback ... getParameter("uuid", "lastEventsUpdateAt", lastEventsUpdateAt); @@ -1618,6 +1621,11 @@ int cUpdate::refreshEpg(const char* forChannelId, int maxTries) tell(1, "Updated all %d channels, %d events (%d deletions) in %s", channels, total, dels, ms2Dur(cTimeMs::Now()-start).c_str()); + // print sql statistic for statement debugging + + if (Epg2VdrConfig.loglevel >= 5) + connection->showStat("refresh"); + return dbConnected(yes) ? success : fail; } |