/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 201 by william, Sat Mar 16 22:34:30 2013 UTC revision 202 by william, Sat Mar 16 22:36:18 2013 UTC
# Line 857  namespace GBPVRProgramDatabaseFixer Line 857  namespace GBPVRProgramDatabaseFixer
857              st1.Start();              st1.Start();
858              foreach (var p in ChunkList)              foreach (var p in ChunkList)
859              {              {
860                  //Stopwatch st2 = new Stopwatch();                  Stopwatch st2 = new Stopwatch();
861                  //st2.Start();                  st2.Start();
862                  progress = 100.0 * (index / total);                  progress = 100.0 * (index / total);
863                  gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Inserting GBPVR Programs: {0:00}%", (int)progress)));                  gLog.Warn.WriteLine("Inserting {0} gbpvr programs ({1} of {2})", p.Count(), index, total);  
                 //gLog.Warn.WriteLine("Inserting {0} gbpvr programs.", p.Count());    
864                  if (!InsertProgramEntryDatabase(p))                  if (!InsertProgramEntryDatabase(p))
865                  {                  {
866                      gLog.Error.WriteLine("Failed to insert one or more program(s)");                      gLog.Error.WriteLine("Failed to insert one or more program(s)");
867                  }                  }
868                  //st2.Stop();                  st2.Stop();
869                  //gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds", st2.Elapsed.TotalSeconds);                  gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds", st2.Elapsed.TotalSeconds);
870                  //gLog.Warn.WriteLine(System.Environment.NewLine);                  gLog.Warn.WriteLine(System.Environment.NewLine);
871                                    gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Inserting GBPVR Programs: {0:00}%", (int)progress)));
872                  index += (double)p.Count();                                  index += (double)p.Count();                
873              }              }
874              st1.Stop();              st1.Stop();

Legend:
Removed from v.201  
changed lines
  Added in v.202

  ViewVC Help
Powered by ViewVC 1.1.22