/[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/17 01:31:28	218
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/17 01:43:24	219
@@ -825,7 +825,7 @@
         public void RemoveOldGBPVRPrograms(List<SQLLITE.IPROGRAMME> programs)
         {            
             gLog.Info.WriteLine("Removing {0} gbpvr programs.", programs.Count);
-            int ChunkSize = 1;
+            int ChunkSize = 100;
             var ChunkList = programs.Chunk<IPROGRAMME>(ChunkSize);
             double total = programs.Count;
             double index = 0;
@@ -842,6 +842,7 @@
                 gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Removing old gbpvr programs ({0} of {1}) {2:00}%", index, total, (int)progress)));
                 index += (double)p.Count(); 
             }
+            gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Removing old gbpvr programs ({0} of {1}) {2:00}%", index, total, (int)progress)));
             st1.Stop();
             gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds overall", st1.Elapsed.TotalSeconds);
         }
@@ -866,6 +867,7 @@
                 gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Updating gbpvr programs ({0} of {1}) {2:00}%", index, total, (int)progress)));
                 index += (double)p.Count();                
             }
+            gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Updating gbpvr programs ({0} of {1}) {2:00}%", index, total, (int)progress)));
             st1.Stop();
             gLog.Warn.WriteLine("    operation took: {0:0.00000} seconds overall", st1.Elapsed.TotalSeconds);
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22