v1.1.4 : Fixed a case in which func tests didnt detect errors

This commit is contained in:
Brendan LE GLAUNEC
2016-12-21 11:22:53 +01:00
parent 1e25be7ca5
commit 3510b98797
14 changed files with 102 additions and 95 deletions
+2 -5
View File
@@ -21,7 +21,6 @@ namespace cameradar {
// Uses the subnets specified in the conf file to launch nmap
bool
print::run() const {
bool first = true;
std::vector<stream_model> results = (*cache)->get_valid_streams();
std::ofstream file;
@@ -32,13 +31,11 @@ print::run() const {
}
file << "[\n";
unsigned int i = 0;
for (const auto& stream : results) {
file << deserialize(stream).toStyledString();
if (first) {
file << ",";
first = false;
}
if (++i < results.size()) file << ",";
LOG_INFO_("Generated JSON Result : " + deserialize(stream).toStyledString(), "print");
}