Skip to content

Commit

Permalink
Changed docker to not require argument, removed most logs/all from NS3
Browse files Browse the repository at this point in the history
  • Loading branch information
charliebarber committed Apr 6, 2024
1 parent eb8f608 commit 8af17d9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ if [ $? -ne 0 ]; then
exit 1
fi

if [ -z "$1" ]; then
exit 0
fi
# if [ -z "$1" ]; then
# exit 0
# fi

# ./ns3 run 'scratch/combined-frr.cc --delay_bottleneck=1ms'
./run_ns3.sh
Expand Down
5 changes: 2 additions & 3 deletions src/combined-baseline-no-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,10 @@ int main(int argc, char* argv[])
cmd.AddValue("dir", "Traces directory", dir);
cmd.Parse(argc, argv);

std::cout << "Congestion policy threshold: " << cong_threshold << std::endl;
BasicCongestionPolicy::usage_percentage = cong_threshold;

// LogComponentEnable("FRRQueue", LOG_LEVEL_ERROR);
// LogComponentEnableAll(LOG_LEVEL_ERROR);
// LogComponentEnable("FRRQueue", LOG_LEVEL_LOGIC);
LogComponentEnableAll(LOG_LEVEL_ERROR);
/*
* +----------+ +-----------+
* |Congestion| | Traffic |
Expand Down
6 changes: 2 additions & 4 deletions src/combined-baseline-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,10 @@ int main(int argc, char* argv[])
cmd.AddValue("dir", "Traces directory", dir);
cmd.Parse(argc, argv);

std::cout << "Congestion policy threshold: " << cong_threshold << std::endl;
BasicCongestionPolicy::usage_percentage = cong_threshold;

// LogComponentEnable("FRRQueue", LOG_LEVEL_ERROR);
// LogComponentEnableAll(LOG_LEVEL_ERROR);

// LogComponentEnable("FRRQueue", LOG_LEVEL_LOGIC);
LogComponentEnableAll(LOG_LEVEL_ERROR);
/*
* +----------+ +-----------+
* |Congestion| | Traffic |
Expand Down
4 changes: 2 additions & 2 deletions src/combined-frr-no-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ int main(int argc, char* argv[])
cmd.AddValue("dir", "Traces directory", dir);
cmd.Parse(argc, argv);

std::cout << "Congestion policy threshold: " << cong_threshold << std::endl;
BasicCongestionPolicy::usage_percentage = cong_threshold;

LogComponentEnable("FRRQueue", LOG_LEVEL_LOGIC);
// LogComponentEnable("FRRQueue", LOG_LEVEL_LOGIC);
LogComponentEnableAll(LOG_LEVEL_ERROR);
/*
* +----------+ +-----------+
* |Congestion| | Traffic |
Expand Down
1 change: 0 additions & 1 deletion src/combined-frr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ int main(int argc, char* argv[])
cmd.AddValue("dir", "Traces directory", dir);
cmd.Parse(argc, argv);

std::cout << "Congestion policy threshold: " << cong_threshold << std::endl;
BasicCongestionPolicy::usage_percentage = cong_threshold;

// LogComponentEnable("FRRQueue", LOG_LEVEL_ERROR);
Expand Down

0 comments on commit 8af17d9

Please sign in to comment.