[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/tossim/sf Throttle.cpp, 1.1, 1.2

Chad Metcalf hiro at users.sourceforge.net
Mon Oct 8 20:31:31 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/tossim/sf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15986/sf

Modified Files:
	Throttle.cpp 
Log Message:
Added a cast to stop a warning.


Index: Throttle.cpp
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/tossim/sf/Throttle.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Throttle.cpp	3 Oct 2007 01:50:20 -0000	1.1
--- Throttle.cpp	9 Oct 2007 03:31:29 -0000	1.2
***************
*** 60,64 ****
      
      double secondsElasped = getTime() - simStartTime;
!     sim_time_t ticksElasped = secondsElasped*sim->ticksPerSecond();
  
      sim_time_t difference = sim->time() - ticksElasped;
--- 60,64 ----
      
      double secondsElasped = getTime() - simStartTime;
!     sim_time_t ticksElasped = (sim_time_t) secondsElasped*sim->ticksPerSecond();
  
      sim_time_t difference = sim->time() - ticksElasped;



More information about the Tinyos-2-commits mailing list