Commit 019362bf authored by Daniele Tafani's avatar Daniele Tafani
Browse files

Fixed silly bug for overflow detection.

parent 55d51d27
......@@ -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;
}
/*
......
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