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

Suggestion



	Hello,

	I've seen in scheduler.cc a test very useful

---------------------------
void
Scheduler::dispatch(Event* p, double t)
{
	if (t < clock_)
		fprintf(stderr, "ns: scheduler going backwards in time 
from %f to %f.\n", clock_, t);


....
-----------------

	I think It will be also very useful to know when this event was 
schedule. I  propose to add this line in schedule function.

	if (delay < 0) {
		fprintf(stderr, "ns: scheduler schedules negative delay 
(%f) at time %f .\n", delay, clock_);
	}


	best Regards



                                      '''
                                     (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
--------------------------------(__)------(__)--------------------------