Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
c9634880
Commit
c9634880
authored
Jan 03, 2017
by
Michael Ott
Browse files
Remove debug output in SensorCache::storeSensor()
parent
c3a4a8e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
CollectAgent/sensorcache.cpp
View file @
c9634880
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment