mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed the check to see whether the system time is running linearly
This commit is contained in:
parent
441c35e8e8
commit
5497970338
1
HISTORY
1
HISTORY
@ -888,3 +888,4 @@ Video Disk Recorder Revision History
|
|||||||
- Added DPID to "PREMIERE MOVIE 1" in channels.conf.cable (thanks to Stephan
|
- Added DPID to "PREMIERE MOVIE 1" in channels.conf.cable (thanks to Stephan
|
||||||
Schreiber).
|
Schreiber).
|
||||||
- Prepared the OSD functions for multiple overlapping windows.
|
- Prepared the OSD functions for multiple overlapping windows.
|
||||||
|
- Removed the check to see whether the system time is running linearly.
|
||||||
|
11
vdr.c
11
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/people/kls/vdr
|
* The project's page is at http://www.cadsoft.de/people/kls/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.89 2001/11/03 12:23:45 kls Exp $
|
* $Id: vdr.c 1.90 2002/01/13 16:00:47 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -314,7 +314,6 @@ int main(int argc, char *argv[])
|
|||||||
int LastChannel = -1;
|
int LastChannel = -1;
|
||||||
int PreviousChannel = cDvbApi::CurrentChannel();
|
int PreviousChannel = cDvbApi::CurrentChannel();
|
||||||
time_t LastActivity = 0;
|
time_t LastActivity = 0;
|
||||||
time_t LinearTime = time(NULL);
|
|
||||||
int MaxLatencyTime = 0;
|
int MaxLatencyTime = 0;
|
||||||
bool ForceShutdown = false;
|
bool ForceShutdown = false;
|
||||||
|
|
||||||
@ -324,14 +323,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!Interrupted) {
|
while (!Interrupted) {
|
||||||
// Test if we are running in the Einstein continuum:
|
|
||||||
time_t Now = time(NULL);
|
|
||||||
time_t LinearDelta = Now - LinearTime;
|
|
||||||
if (LinearDelta) {
|
|
||||||
if (LinearDelta < 0 || LinearDelta > 300) // assuming nothing will block for more than 5 minutes
|
|
||||||
esyslog(LOG_ERR, "ERROR: time warp detected (%d seconds)", LinearDelta);
|
|
||||||
LinearTime = Now;
|
|
||||||
}
|
|
||||||
// Handle emergency exits:
|
// Handle emergency exits:
|
||||||
if (cThread::EmergencyExit()) {
|
if (cThread::EmergencyExit()) {
|
||||||
esyslog(LOG_ERR, "emergency exit requested - shutting down");
|
esyslog(LOG_ERR, "emergency exit requested - shutting down");
|
||||||
|
Loading…
Reference in New Issue
Block a user