Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
780 B
6
Indexable
Never
if (missingReadingsCount > 1)
{
    if (missingReadingsCount > 2)
        missingReadingsCount = 2;
    //if (missingReadingsCount == 2)
       // missingReadingsCount = 1;
    
        for (int i =0; i < missingReadingsCount; i++)
        {
            Console.WriteLine($"DIFF:{dt2_ms.ToString("yyyy-MM-dd HH:mm:ss.fff")} {dt1_ms.ToString("yyyy-MM-dd HH:mm:ss.fff")} = {missingReadingsCount} , entered");
            AnalogReadings tempReading1 = GetCloneAnalogReadings(MasterList[masterListCounter]);
            tempReading1.TimeStamp = tempReading1.TimeStamp.AddMilliseconds(1000 + (i * 1000));
            //MasterList.Insert(masterListCounter + (i + 1), tempReading1);
            analogReadings.Add(tempReading1);

        }
        masterListCounter += 1;
Leave a Comment