Skip to content

Commit

Permalink
update google cloud log
Browse files Browse the repository at this point in the history
  • Loading branch information
WanHaoRan committed Jun 17, 2024
1 parent 32a08a4 commit a3201ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nrscope/src/libs/to_google.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ namespace ToGoogle{
PyDict_SetItemString(pDict, "mcs_table", pStr);
pStr = PyUnicode_FromString(srsran_mcs_table_to_str(new_entry.grant.sch_cfg.mcs_table));
PyDict_SetItemString(pDict, "xoverhead", pStr);
pInt = PyLong_FromLong(new_entry.dl_dci.ctx.rnti == new_entry.grant.grant.rnti ? new_entry.dl_dci.pid : new_entry.ul_dci.pid),
pInt = PyLong_FromLong(new_entry.dci_format == "1_1" ? new_entry.dl_dci.pid : new_entry.ul_dci.pid),
PyDict_SetItemString(pDict, "harq_id", pInt);
pInt = PyLong_FromLong(new_entry.dl_dci.ctx.rnti == new_entry.grant.grant.rnti ? new_entry.dl_dci.dai : new_entry.ul_dci.dai1),
pInt = PyLong_FromLong(new_entry.dci_format == "1_1" ? new_entry.dl_dci.dai : new_entry.ul_dci.dai1),
PyDict_SetItemString(pDict, "downlink_assignment_index", pInt);
pInt = PyLong_FromLong(new_entry.dl_dci.ctx.rnti == new_entry.grant.grant.rnti ? new_entry.dl_dci.tpc : new_entry.ul_dci.tpc),
pInt = PyLong_FromLong(new_entry.dci_format == "1_1" ? new_entry.dl_dci.tpc : new_entry.ul_dci.tpc),
PyDict_SetItemString(pDict, "tpc", pInt);
pInt = PyLong_FromLong(new_entry.dl_dci.ctx.rnti == new_entry.grant.grant.rnti ? new_entry.dl_dci.pucch_resource : 0),
pInt = PyLong_FromLong(new_entry.dci_format == "1_1" ? new_entry.dl_dci.pucch_resource : 0),
PyDict_SetItemString(pDict, "pucch_resource", pInt);
pInt = PyLong_FromLong(new_entry.dl_dci.ctx.rnti == new_entry.grant.grant.rnti ? new_entry.dl_dci.harq_feedback : 0),
pInt = PyLong_FromLong(new_entry.dci_format == "1_1" ? new_entry.dl_dci.harq_feedback : 0),
PyDict_SetItemString(pDict, "harq_feedback", pInt);

PyList_SetItem(pList[rf_id], list_count[rf_id], pDict);
Expand Down

0 comments on commit a3201ff

Please sign in to comment.