mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Improved logging system time changes to avoid problems on slow systems under heavy load
This commit is contained in:
parent
644fcc3bbe
commit
f933b63d1f
@ -595,6 +595,8 @@ Helmut Auer <vdr@helmutauer.de>
|
|||||||
not two hex digits after the '#'
|
not two hex digits after the '#'
|
||||||
for suggesting to suppress the automatic shutdown if the remote control is
|
for suggesting to suppress the automatic shutdown if the remote control is
|
||||||
currently disabled
|
currently disabled
|
||||||
|
for suggesting to improve logging system time changes to avoid problems on slow
|
||||||
|
systems under heavy load
|
||||||
|
|
||||||
Jeremy Hall <jhall@UU.NET>
|
Jeremy Hall <jhall@UU.NET>
|
||||||
for fixing an incomplete initialization of the filter parameters in eit.c
|
for fixing an incomplete initialization of the filter parameters in eit.c
|
||||||
|
2
HISTORY
2
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
|
- Fixed handling the counter in detection of pre 1.3.19 PS data (thanks to Reinhard
|
||||||
Nissl).
|
Nissl).
|
||||||
|
- Improved logging system time changes to avoid problems on slow systems under
|
||||||
|
heavy load (suggested by Helmut Auer).
|
||||||
|
8
eit.c
8
eit.c
@ -8,7 +8,7 @@
|
|||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* 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>.
|
* 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"
|
#include "eit.h"
|
||||||
@ -300,9 +300,9 @@ cTDT::cTDT(const u_char *Data)
|
|||||||
if (diff > 2) {
|
if (diff > 2) {
|
||||||
mutex.Lock();
|
mutex.Lock();
|
||||||
if (abs(diff - lastDiff) < 3) {
|
if (abs(diff - lastDiff) < 3) {
|
||||||
isyslog("System Time = %s (%ld)", *TimeToString(loctim), loctim);
|
if (stime(&sattim) == 0)
|
||||||
isyslog("Local Time = %s (%ld)", *TimeToString(sattim), sattim);
|
isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(sattim), sattim);
|
||||||
if (stime(&sattim) < 0)
|
else
|
||||||
esyslog("ERROR while setting system time: %m");
|
esyslog("ERROR while setting system time: %m");
|
||||||
}
|
}
|
||||||
lastDiff = diff;
|
lastDiff = diff;
|
||||||
|
Loading…
Reference in New Issue
Block a user