Commits

Friedrich Kastner-Masilko committed 250905b

OMPClient: fix bug in garbage collector regarding removal of deletion marks

Comments (0)

Files changed (1)

Orbitersdk/samples/OMP/OMPClient/OMPClient.cpp

 				double timestamp=get_global_timestamp();
 				std::vector<unsigned int> tobedeleted;
 				for(std::map<unsigned int, double>::iterator i=dinfo.deletedVessels.begin();i!=dinfo.deletedVessels.end();i++)
-					if ((timestamp-i->second) > dinfo.globalidle) tobedeleted.push_back(i->first);
+					if ((timestamp-i->second)*1000 > dinfo.globalidle) tobedeleted.push_back(i->first);
 				for(int i=tobedeleted.size();i-->0;) dinfo.deletedVessels.erase(tobedeleted[i]);
 			}
 		LeaveCriticalSection(&hashing);