/[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 19:59:44	190
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 20:07:53	191
@@ -838,7 +838,7 @@
                 gLog.Error.WriteLine("Failed to remove one or more program(s)");
             }
             st.Stop();
-            gLog.Warn.WriteLine("    operation took: {0} seconds", st.Elapsed.TotalSeconds);
+            gLog.Warn.WriteLine("    operation took: {0:0.00000} minutes", st.Elapsed.TotalMinutes);
         }
         public void UpdateGBPVRPrograms(List<IOldNewProgram> programs)
         {
@@ -852,7 +852,7 @@
                 new_program_list.Add(program.NewProgram);
             }
             new_program_list.TrimExcess();
-            gLog.Info.WriteLine("Inserting {0} gbpvr programs.", new_program_list.Count);
+            gLog.Info.WriteLine("Inserting {0} gbpvr programs.", new_program_list.ToArray().Count());
             Stopwatch st = new Stopwatch();
             st.Start();
             if (!InsertProgramEntryDatabase(new_program_list))
@@ -861,7 +861,7 @@
             }
             //string command = BuildGBPVRMultiInsertCommand(new_program_list);
             st.Stop();
-            gLog.Warn.WriteLine("    operation took: {0} seconds", st.Elapsed.TotalSeconds);
+            gLog.Warn.WriteLine("    operation took: {0:0.00000} minutes", st.Elapsed.TotalMinutes);
         }
 
         private bool RemoveAllProgramDatabaseEntries()

 

  ViewVC Help
Powered by ViewVC 1.1.22