Commit c9634880 authored by Michael Ott's avatar Michael Ott
Browse files

Remove debug output in SensorCache::storeSensor()

parent c3a4a8e7
......@@ -32,11 +32,9 @@ void SensorCache::storeSensor(SensorId sid, uint64_t ts, uint64_t val) {
sensorCache_t::iterator it = sensorCache.find(sid);
if (it != sensorCache.end()) {
if (it->second.size() && (it->second.front().timestamp+MAX_HISTORY_NS <= ts)) {
std::cout << "SensorCache::storeSensor() Removing " << it->first.toString() << " " << it->second.front().timestamp << std::endl;
it->second.pop_front();
}
it->second.push_back(s);
std::cout << "SensorCache::storeSensor(" << sid.toString() << "," << ts << "," << val << ") size=" << it->second.size() << std::endl;
} else {
sensorCache[sid].push_back(s);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment