@@ -289,8 +289,6 @@ private static Dayfilerec GetDayRecFromMonthly(DateTime date)
289289 var recCount = 0 ;
290290 var idx = 0 ;
291291
292-
293- var entrydate = DateTime . MinValue ;
294292 var lastentrydate = DateTime . MinValue ;
295293 var lasttempvalue = 0.0 ;
296294
@@ -377,7 +375,7 @@ private static Dayfilerec GetDayRecFromMonthly(DateTime date)
377375 //var st = new List<string>(Regex.Split(line, CultureInfo.CurrentCulture.TextInfo.ListSeparator));
378376 // Regex is very expensive, let's assume the separator is always a single character
379377 var st = new List < string > ( CurrentLogLines [ CurrentLogLineNum ] . Split ( dayfile . FieldSep [ 0 ] ) ) ;
380- entrydate = Utils . DdmmyyhhmmStrToDate ( st [ 0 ] , st [ 1 ] ) ;
378+ var entrydate = Utils . DdmmyyhhmmStrToDate ( st [ 0 ] , st [ 1 ] ) ;
381379
382380 // same meto day, or first record of the next day
383381 // we want data from 00:00/09:00 to 00:00/09:00
@@ -913,6 +911,7 @@ private static Dayfilerec GetSolarDayRecFromMonthly(DateTime date, Dayfilerec re
913911 {
914912 // we are just getting the solar values to midnight
915913 ExtractSolarData ( st , ref rec , entrydate ) ;
914+ started = true ;
916915 }
917916 else if ( started )
918917 {
@@ -923,12 +922,6 @@ private static Dayfilerec GetSolarDayRecFromMonthly(DateTime date, Dayfilerec re
923922
924923 return rec ;
925924 }
926- else
927- {
928- // We didn't find any data
929- CurrentSolarLogLineNum = 0 ;
930- return rec ;
931- }
932925
933926 CurrentSolarLogLineNum ++ ;
934927 } // end while
0 commit comments