|
@@ -26,11 +26,8 @@ void botnet_comm_processor::set_messages(const py::list &messages_pyboost){
|
|
|
unsigned int dst_id = std::stoi(py::extract<std::string>(msg_pyboost["Dst"]));
|
|
|
unsigned short type = (unsigned short) std::stoi(py::extract<std::string>(msg_pyboost["Type"]));
|
|
|
double time = std::stod(py::extract<std::string>(msg_pyboost["Time"]));
|
|
|
+ int line_no = std::stoi(py::extract<std::string>(msg_pyboost.get("LineNumber", "-1")));
|
|
|
|
|
|
- int line_no = -1;
|
|
|
- // try {
|
|
|
- line_no = std::stoi(py::extract<std::string>(msg_pyboost["LineNumber"]));
|
|
|
- // }
|
|
|
abstract_msg msg = {src_id, dst_id, type, time, line_no};
|
|
|
messages.push_back(std::move(msg));
|
|
|
}
|