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
5c236dc1
Commit
5c236dc1
authored
Oct 15, 2020
by
Michael Ott
Browse files
Fix collectagent statistics that are by a factor of 1000 off
parent
59c4ae03
Changes
1
Hide whitespace changes
Inline
Side-by-side
collectagent/collectagent.cpp
View file @
5c236dc1
...
...
@@ -870,8 +870,8 @@ int main(int argc, char* const argv[]) {
end
=
getTimestamp
();
elapsed
=
NS_TO_S
(((
double
)
end
-
(
double
)
start
));
float
publish
=
msgCtr
?
(
pmsgCtr
*
100.0
)
/
msgCtr
:
0
;
LOG
(
info
)
<<
"Performance: "
<<
(
readingCtr
/
elapsed
)
*
1000.0
<<
" inserts/s, "
<<
(
msgCtr
/
elapsed
)
*
1000.0
<<
" messages/s ("
<<
publish
<<
"% PUBLISH)"
;
LOG
(
info
)
<<
"Analytics Performance: "
<<
(
analyticsController
->
getReadingCtr
()
/
elapsed
)
*
1000.0
<<
" inserts/s "
;
LOG
(
info
)
<<
"Performance: "
<<
(
readingCtr
/
elapsed
)
<<
" inserts/s, "
<<
(
msgCtr
/
elapsed
)
<<
" messages/s ("
<<
publish
<<
"% PUBLISH)"
;
LOG
(
info
)
<<
"Analytics Performance: "
<<
(
analyticsController
->
getReadingCtr
()
/
elapsed
)
<<
" inserts/s "
;
std
::
map
<
std
::
string
,
hostInfo_t
>
lastSeen
=
ms
.
collectLastSeen
();
uint64_t
connectedHosts
=
0
;
for
(
auto
h
:
lastSeen
)
{
...
...
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