Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
muriloAvlis committed Jun 11, 2024
1 parent 3cf5dd9 commit 3c19e3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake-build-debug
.idea
compile_commands.json
build
build
configs/xApp.conf
2 changes: 1 addition & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
sed -i "s/NEAR_RIC_IP = 127.0.0.1/NEAR_RIC_IP = ${NEAR_RIC_IP}/g" /usr/local/etc/flexric/flexric.conf

## Exec xApp bin
stdbuf -o0 xapp_iqos
stdbuf -o0 xapp_iqos
2 changes: 1 addition & 1 deletion src/kpmManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@ namespace KpmManager

static int counter = 1;
u_int64_t now{get_time_now_us()};
u_int64_t latency{now - hdr_frm_1->collectStartTime};

// create a new scope
{
pthread_mutex_lock(&mtx);
defer(pthread_mutex_unlock(&mtx));

// print latency xApp <-> E2 Node
u_int64_t latency{now - hdr_frm_1->collectStartTime};
printf("\n <--------------KPM ind_msg %d | latency = %lu [μs]--------------> \n", counter,
latency); // xApp <-> E2 Node

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
configureLogger("IQoS-xApp", spdlog::level::debug);

// set FlexRIC IP (just for development)
// args.ip = {"192.168.122.10"};
args.ip = {"192.168.122.10"};

// init xApp
init_xapp_api(&args);
Expand Down

0 comments on commit 3c19e3a

Please sign in to comment.