/[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

--- trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 22:34:30	201
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 22:36:18	202
@@ -857,19 +857,18 @@
             st1.Start();
             foreach (var p in ChunkList)
             {
-                //Stopwatch st2 = new Stopwatch();
-                //st2.Start();
+                Stopwatch st2 = new Stopwatch();
+                st2.Start();
                 progress = 100.0 * (index / total);
-                gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Inserting GBPVR Programs: {0:00}%", (int)progress)));
-                //gLog.Warn.WriteLine("Inserting {0} gbpvr programs.", p.Count());   
+                gLog.Warn.WriteLine("Inserting {0} gbpvr programs ({1} of {2})", p.Count(), index, total);   
                 if (!InsertProgramEntryDatabase(p))
                 {
                     gLog.Error.WriteLine("Failed to insert one or more program(s)");
                 }
-                //st2.Stop();
-                //gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds", st2.Elapsed.TotalSeconds);
-                //gLog.Warn.WriteLine(System.Environment.NewLine);
-                
+                st2.Stop();
+                gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds", st2.Elapsed.TotalSeconds);
+                gLog.Warn.WriteLine(System.Environment.NewLine);
+                gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Inserting GBPVR Programs: {0:00}%", (int)progress)));
                 index += (double)p.Count();                
             }
             st1.Stop();

 

  ViewVC Help
Powered by ViewVC 1.1.22