revert code that did not affect memory
[gitlive] / Monitor.vala
index b8e3bce..c268db1 100644 (file)
@@ -77,7 +77,7 @@ public class Monitor : gitMonitorBase
 {
 
 
-
+       static int total_monitors = 0;
     public Monitor()
     {
        
@@ -164,6 +164,11 @@ public class Monitor : gitMonitorBase
  
                  fm.changed.connect( this.onEvent );
                 this.monitors.append_val(fm);
+                
+                total_monitors++;
+                GLib.debug("Total Monitors this: %d, All:%d: %s", (int)this.monitors.length, total_monitors, path);
 
             } catch (Error e) {
                   GLib.debug("Error adding monitor: %s\n", e.message);