[tracker/class-signal: 27/61] tracker-store: class-signal: Reset the total counter on each emit



commit a49ea5326c963842b59bdb71d0700524b9e87937
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Aug 23 11:22:18 2010 +0200

    tracker-store: class-signal: Reset the total counter on each emit

 src/tracker-store/tracker-resources.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 5c87ed7..901e7b6 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -617,6 +617,9 @@ on_emit_class_signal (gpointer user_data)
 		}
 	}
 
+	/* Reset counter */
+	tracker_events_get_total (TRUE);
+
 	if (!had_any)
 		priv->class_signal_timeout = 0;
 
@@ -679,6 +682,8 @@ check_class_signal_signal (TrackerResources *object)
 			TrackerClass *class = key;
 			emit_class_signal (object, class);
 		}
+
+		/* Reset counter */
 		tracker_events_get_total (TRUE);
 	} else {
 		/* Ready the signal */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]