mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +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:
parent
d11e9dbea4
commit
e34181ed70
@ -427,8 +427,11 @@ if($attr{global}{logfile} ne "-" && !$attr{global}{nofork}) {
|
||||
|
||||
# FritzBox special: Wait until the time is set via NTP,
|
||||
# but not more than 2 hours
|
||||
while(time() < 2*3600) {
|
||||
sleep(5);
|
||||
if(time() < 2*3600) {
|
||||
Log 1, "date/time not set, waiting up to 2 hours to be set.";
|
||||
while(time() < 2*3600) {
|
||||
sleep(5);
|
||||
}
|
||||
}
|
||||
|
||||
###################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user