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
211a0a7e
Commit
211a0a7e
authored
May 18, 2020
by
Alessio Netti
Browse files
Analytics: minor fixes
parent
b4830c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/dcdbpusher.cpp
View file @
211a0a7e
...
@@ -85,7 +85,7 @@ bool sensorQueryCallback(const string &name, const uint64_t startTs, const uint6
...
@@ -85,7 +85,7 @@ bool sensorQueryCallback(const string &name, const uint64_t startTs, const uint6
bool
found
=
false
;
bool
found
=
false
;
++
_queryEngine
.
access
;
++
_queryEngine
.
access
;
shared_ptr
<
map
<
string
,
SBasePtr
>>
sensorMap
=
_queryEngine
.
getSensorMap
();
shared_ptr
<
map
<
string
,
SBasePtr
>>
sensorMap
=
_queryEngine
.
getSensorMap
();
if
(
sensorMap
!=
nullptr
&&
sensorMap
->
count
(
name
)
>
0
)
{
if
(
sensorMap
!=
nullptr
&&
sensorMap
->
count
(
name
)
>
0
)
{
SBasePtr
sensor
=
sensorMap
->
at
(
name
);
SBasePtr
sensor
=
sensorMap
->
at
(
name
);
found
=
sensor
->
isInit
()
?
sensor
->
getCache
()
->
getView
(
startTs
,
endTs
,
buffer
,
rel
)
:
false
;
found
=
sensor
->
isInit
()
?
sensor
->
getCache
()
->
getView
(
startTs
,
endTs
,
buffer
,
rel
)
:
false
;
...
@@ -99,8 +99,9 @@ bool sensorGroupQueryCallback(const std::vector<string> &names, const uint64_t s
...
@@ -99,8 +99,9 @@ bool sensorGroupQueryCallback(const std::vector<string> &names, const uint64_t s
if
(
_queryEngine
.
updating
.
load
())
if
(
_queryEngine
.
updating
.
load
())
return
false
;
return
false
;
bool
outcome
=
false
;
bool
outcome
=
false
;
for
(
const
auto
&
name
:
names
)
for
(
const
auto
&
name
:
names
)
{
outcome
=
outcome
||
sensorQueryCallback
(
name
,
startTs
,
endTs
,
buffer
,
rel
);
outcome
=
sensorQueryCallback
(
name
,
startTs
,
endTs
,
buffer
,
rel
)
||
outcome
;
}
return
outcome
;
return
outcome
;
}
}
...
...
Write
Preview
Supports
Markdown
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