Beispiel #1
0
 public GroupData()
 {
     SatelliteName          = "Unknown";
     RegionName             = "Unknown";
     SatelliteLongitude     = 0f;
     FrameTime              = DateTime.Now;
     Visible                = new OrganizerData();
     Infrared               = new OrganizerData();
     WaterVapour            = new OrganizerData();
     OtherData              = new Dictionary <string, OrganizerData>();
     IsFalseColorProcessed  = false;
     IsVisibleProcessed     = false;
     IsInfraredProcessed    = false;
     IsWaterVapourProcessed = false;
     IsProcessed            = false;
     Failed              = false;
     RetryCount          = 0;
     CropImage           = false;
     Created             = LLTools.Timestamp();
     ColumnOffset        = -1;
     LineOffset          = -1;
     ColumnScalingFactor = 0f;
     LineScalingFactor   = 0f;
     Code = DateTime.UtcNow.ToString();
     HasNavigationData = false;
 }
        public static void Update(DBStatistics stats)
        {
            lock (statistics) {
                stats.Timestamp = LLTools.TimestampMS();
                if (stats.Timestamp == lastTimestamp)
                {
                    stats.Timestamp++;
                }
                lastTimestamp = stats.Timestamp;

                statistics.Add(stats);
                if (LLTools.Timestamp() - lastCheck > checkInterval)
                {
                    long startTime = LLTools.TimestampMS();
                    // Time to dump
                    foreach (var s in statistics)
                    {
                        ConfigurationManager.PutStatistics(s, false);
                    }
                    statistics.Clear();
                    lastCheck = LLTools.Timestamp();
                }
            }
        }
Beispiel #3
0
 public DemuxManager()
 {
     try {
         demuxers         = new Dictionary <int, Demuxer>();
         productsReceived = new Dictionary <int, long>();
         CRCFails         = 0;
         Bugs             = 0;
         Packets          = 0;
         LengthFails      = 0;
         FrameLoss        = 0;
         FrameJumps       = 0;
         recordMutex      = new Mutex();
         resetMutex       = new Mutex();
         if (RecordToFile)
         {
             fileName = string.Format("demuxdump-{0}.bin", LLTools.Timestamp());
             UIConsole.Log(string.Format("Demux Dump filename: {0}", Path.GetFileName(fileName)));
             fStream = File.OpenWrite(fileName);
         }
     } catch (Exception e) {
         CrashReport.Report(e);
         throw e;
     }
 }
 static StatisticsManager()
 {
     statistics    = new List <DBStatistics> ();
     lastCheck     = LLTools.Timestamp();
     lastTimestamp = LLTools.TimestampMS();
 }