[Jderobot-admin] jderobot-r1099 - trunk/src/stable/libs/parallelIce

rocapal en jderobot.org rocapal en jderobot.org
Lun Nov 11 21:28:02 CET 2013


Author: rocapal
Date: 2013-11-11 21:28:01 +0100 (Mon, 11 Nov 2013)
New Revision: 1099

Modified:
   trunk/src/stable/libs/parallelIce/pointcloudClient.cpp
Log:
#110 solved bug about Floating Point Exception


Modified: trunk/src/stable/libs/parallelIce/pointcloudClient.cpp
===================================================================
--- trunk/src/stable/libs/parallelIce/pointcloudClient.cpp	2013-11-11 17:55:30 UTC (rev 1098)
+++ trunk/src/stable/libs/parallelIce/pointcloudClient.cpp	2013-11-11 20:28:01 UTC (rev 1099)
@@ -99,9 +99,7 @@
 		else{
 			usleep(this->cycle - (IceUtil::Time::now().toMicroSeconds() - last.toMicroSeconds()));
 		}
-		//this->refreshRate=(int)(1000000/(IceUtil::Time::now().toMicroSeconds() - last.toMicroSeconds()));
-		//last=IceUtil::Time::now();
-
+		iterIndex++;
 		int rate =(int)(1000000/(IceUtil::Time::now().toMicroSeconds() - last.toMicroSeconds()));
 		totalRefreshRate =  totalRefreshRate + rate;
 		this->refreshRate= totalRefreshRate / iterIndex;



More information about the Jderobot-admin mailing list