2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

fhem.pl: Log message when date is not set

git-svn-id: https://svn.fhem.de/fhem/trunk@6348 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-08-03 08:22:52 +00:00
parent d11e9dbea4
commit e34181ed70

View File

@ -427,9 +427,12 @@ if($attr{global}{logfile} ne "-" && !$attr{global}{nofork}) {
# FritzBox special: Wait until the time is set via NTP, # FritzBox special: Wait until the time is set via NTP,
# but not more than 2 hours # but not more than 2 hours
if(time() < 2*3600) {
Log 1, "date/time not set, waiting up to 2 hours to be set.";
while(time() < 2*3600) { while(time() < 2*3600) {
sleep(5); sleep(5);
} }
}
################################################### ###################################################
# initialize the readings semantics meta information # initialize the readings semantics meta information