[svn-commits] bweschke: branch bweschke/eventq-sanity-checks r58860 - /team/bweschke/eventq...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Mar 13 12:45:04 MST 2007


Author: bweschke
Date: Tue Mar 13 14:45:03 2007
New Revision: 58860

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58860
Log:
 Put in some more debug info and remove a loop (temp) that might be problematic. 


Modified:
    team/bweschke/eventq-sanity-checks/main/manager.c

Modified: team/bweschke/eventq-sanity-checks/main/manager.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/eventq-sanity-checks/main/manager.c?view=diff&rev=58860&r1=58859&r2=58860
==============================================================================
--- team/bweschke/eventq-sanity-checks/main/manager.c (original)
+++ team/bweschke/eventq-sanity-checks/main/manager.c Tue Mar 13 14:45:03 2007
@@ -574,6 +574,7 @@
 	for (s = master_eventq; s; s = s->next) {
 		ast_cli(fd, "Usecount: %d\n",s->usecount);
 		ast_cli(fd, "Category: %d\n", s->category);
+		ast_cli(fd, "Timestamp: %d\n", s->timeposted);
 		ast_cli(fd, "Event:\n%s", s->eventdata);
 	}
 	AST_LIST_UNLOCK(&sessions);
@@ -2210,12 +2211,12 @@
 		AST_LIST_TRAVERSE_SAFE_END
 		/* Go through the list of events and prepare any older than max age 
 		   for purge */
-		prev = master_eventq;
+		/* prev = master_eventq;
 		while (prev->next) {
 			prev = prev->next;
 			if (prev->timeposted < (now - maxeventage)) 
 				while (!ast_atomic_dec_and_test(&prev->usecount));
-		}
+		} */
 		/* Purge master event queue of old, unused events, but make sure we
 		   always keep at least one in the queue */
 		eqe = master_eventq;



More information about the svn-commits mailing list