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
019362bf
Commit
019362bf
authored
Oct 05, 2018
by
Daniele Tafani
Browse files
Fixed silly bug for overflow detection.
parent
55d51d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/dcdbquery/query.cpp
View file @
019362bf
...
...
@@ -285,6 +285,7 @@ void DCDBQuery::doQuery(const char* hostname, std::list<std::string> sensors, DC
scalingFactor
=
1
;
unit
=
"none"
;
notifyOverflow
=
false
;
/* Output format initialization */
valueFormat
=
{
false
,
1
,
"none"
};
...
...
@@ -389,7 +390,7 @@ void DCDBQuery::doQuery(const char* hostname, std::list<std::string> sensors, DC
sensor
.
query
(
results
,
start
,
end
,
DCDB
::
AGGREGATE_NONE
);
genOutput
(
results
);
if
(
notifyOverflow
)
std
::
cout
<<
"
There has been overflow on some functions.
"
<<
std
::
endl
;
std
::
cout
<<
"
Overflow detected.
"
<<
std
::
endl
;
}
/*
...
...
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