Commit 7e481ee8 authored by prostako's avatar prostako

fix state true as boolean, ts as int64

parent ee09cb41
......@@ -560,7 +560,7 @@ void amf_sbi::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
i.get_reports(event_reports);
for (auto r : event_reports) {
report["type"] = r.getType().get_value();
report["state"]["active"] = "TRUE";
report["state"]["active"] = true;
if (r.supiIsSet()) {
report["supi"] = r.getSupi();
}
......@@ -592,8 +592,8 @@ void amf_sbi::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
// Timestamp
std::time_t time_epoch_ntp = std::time(nullptr);
uint64_t tv_ntp = time_epoch_ntp + SECONDS_SINCE_FIRST_EPOCH;
report["timeStamp"] = std::to_string(tv_ntp);
uint64_t tv_ntp = time_epoch_ntp; // + SECONDS_SINCE_FIRST_EPOCH;
report["timeStamp"] = tv_ntp;
report_lists.push_back(report);
}
......
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