diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-10 11:45:42 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-10 11:45:42 +0100 |
commit | 00d52b12c6547a8aaa4d7b7e0b60d827f0928f3e (patch) | |
tree | a80eb56e5edeb93be01d65de26fd0a2d18306800 /sections.c | |
parent | 37a73ed5b463300ffd2b5d8d78f3a635ce510a82 (diff) | |
download | vdr-00d52b12c6547a8aaa4d7b7e0b60d827f0928f3e.tar.gz vdr-00d52b12c6547a8aaa4d7b7e0b60d827f0928f3e.tar.bz2 |
In case of incomplete sections an error message is now logged only every 10 seconds
Diffstat (limited to 'sections.c')
-rw-r--r-- | sections.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sections.c 1.2 2004/01/03 12:54:01 kls Exp $ + * $Id: sections.c 1.3 2004/01/10 11:45:42 kls Exp $ */ #include "sections.h" @@ -39,6 +39,7 @@ cSectionHandler::cSectionHandler(cDevice *Device) transponder = 0; statusCount = 0; on = false; + lastIncompleteSection = 0; Start(); } @@ -176,8 +177,10 @@ void cSectionHandler::Action(void) fi->Process(pid, tid, buf, len); } } - else + else if (time(NULL) - lastIncompleteSection > 10) { // log them only every 10 seconds dsyslog("read incomplete section - len = %d, r = %d", len, r); + lastIncompleteSection = time(NULL); + } } } } |