[tracker/class-signal: 27/39] tracker-store: class-signal: Reset the total counter on each emit
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/class-signal: 27/39] tracker-store: class-signal: Reset the total counter on each emit
- Date: Wed, 25 Aug 2010 08:39:34 +0000 (UTC)
commit c03d506bf238c828a04951af5aa6687cdd4379d6
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]