FHEM Forum

FHEM => English Corner => Thema gestartet von: Wallyllama am 06 August 2024, 20:25:52

Titel: possible minor bug in 95_Astro.pm
Beitrag von: Wallyllama am 06 August 2024, 20:25:52
I came across this while looking for other things in my log file.
2024.08.06 13:01:43 1: PERL WARNING: Argument "-zone" isn't numeric in numeric lt (<) at ./FHEM/95_Astro.pm line 1864.

I made the following change and it went away.
-      if ($rise<-$zone || $transit<-zone || $set<-zone) {
+      if ($rise<-$zone || $transit<-$zone || $set<-$zone) {

I only see it after I do a restart, so I have no idea if it fixed something, or merely reduced my log file by 218 bytes
Titel: Aw: possible minor bug in 95_Astro.pm
Beitrag von: Prof. Dr. Peter Henning am 16 August 2024, 13:11:45
OK, thanks, I'll take care of this.

Regards

pah