summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-04-13 11:47:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-04-13 11:47:41 +0200
commitf933b63d1f6cbee306dadfab12bdd70681152085 (patch)
tree40a2ff3b53582ed522a433827d7cd7d760967d32
parent644fcc3bbe95548579f9c4a5a235a35736173f15 (diff)
downloadvdr-f933b63d1f6cbee306dadfab12bdd70681152085.tar.gz
vdr-f933b63d1f6cbee306dadfab12bdd70681152085.tar.bz2
Improved logging system time changes to avoid problems on slow systems under heavy load
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY2
-rw-r--r--eit.c8
3 files changed, 8 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 919ca0a7..ec85697c 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -595,6 +595,8 @@ Helmut Auer <vdr@helmutauer.de>
not two hex digits after the '#'
for suggesting to suppress the automatic shutdown if the remote control is
currently disabled
+ for suggesting to improve logging system time changes to avoid problems on slow
+ systems under heavy load
Jeremy Hall <jhall@UU.NET>
for fixing an incomplete initialization of the filter parameters in eit.c
diff --git a/HISTORY b/HISTORY
index f103c09a..d6193810 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5734,3 +5734,5 @@ Video Disk Recorder Revision History
- Fixed handling the counter in detection of pre 1.3.19 PS data (thanks to Reinhard
Nissl).
+- Improved logging system time changes to avoid problems on slow systems under
+ heavy load (suggested by Helmut Auer).
diff --git a/eit.c b/eit.c
index b38e3a8a..06eeddb2 100644
--- a/eit.c
+++ b/eit.c
@@ -8,7 +8,7 @@
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
*
- * $Id: eit.c 1.126 2007/09/26 10:56:33 kls Exp $
+ * $Id: eit.c 1.126.1.1 2008/04/13 11:46:38 kls Exp $
*/
#include "eit.h"
@@ -300,9 +300,9 @@ cTDT::cTDT(const u_char *Data)
if (diff > 2) {
mutex.Lock();
if (abs(diff - lastDiff) < 3) {
- isyslog("System Time = %s (%ld)", *TimeToString(loctim), loctim);
- isyslog("Local Time = %s (%ld)", *TimeToString(sattim), sattim);
- if (stime(&sattim) < 0)
+ if (stime(&sattim) == 0)
+ isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(sattim), sattim);
+ else
esyslog("ERROR while setting system time: %m");
}
lastDiff = diff;