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

UID space for event




	Hello,

	I add a warning for the long simulation running. You find a small 
patch for that.
	Why we do not use a long (actually it is an int)  for the UID space 
? What is the problem ?

	Sincerely,

	P. ANELLI
	


                                      '''
                                     (o -)
---------------------------------oOO--(-)--OOo--------------------------
                                 Pascal ANELLI
 UPMC                                           | Tel : 33-1-44-27-71-29
 LIP 6 : Laboratoire d'Informatique de Paris VI | Fax : 33-1-44-27-74-95
 8, Rue du capitaine Scott                      |
 75015 PARIS        FRANCE                      | Bureau : C 654
   _       __o    o                             |
 ___\o_  _'\<,_  <|\        E-mail: [email protected]
 ~~~~~~ (_)/_(_) _\         URL   : http://www.lip6.fr/rp/~pan
--------------------------------(__)------(__)--------------------------


Index: scheduler.cc
===================================================================
RCS file: /archive/cvs/cvsroot/diffserv/ns-2/scheduler.cc,v
retrieving revision 1.3
diff -c -b -r1.3 scheduler.cc
*** scheduler.cc	1999/05/19 16:20:31	1.3
--- scheduler.cc	1999/08/23 17:15:26
***************
*** 74,79 ****
--- 74,85 ----
  	}
  
  	e->uid_ = uid_++;
+ 	if (uid_ == INT_MAX) {
+ 		printf("Scheduler: space of UID exhausted!\n\n");
+ 	}
+ 
+ 		
  	e->handler_ = h;
  	double t = clock_ + delay;
  	e->time_ = t;