From 63de6913518d553c1388591033fb5d7597c7562a Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 10 Jun 2021 19:36:41 +0200 Subject: [PATCH] SRSENB: Added sleep command description --- srsenb/src/main.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/srsenb/src/main.cc b/srsenb/src/main.cc index 416444b10..972db6b88 100644 --- a/srsenb/src/main.cc +++ b/srsenb/src/main.cc @@ -458,14 +458,11 @@ static void execute_cmd(metrics_stdout* metrics, srsenb::enb_command_interface* cout << "Usage: " << cmd[0] << " [number of seconds]" << endl; return; } - int nseconds = srsran::string_cast(cmd[1]); if (nseconds <= 0) { return; } - std::this_thread::sleep_for(std::chrono::seconds(nseconds)); - } else if (cmd[0] == "p") { do_padding = !do_padding; if (do_padding) { @@ -493,6 +490,7 @@ static void execute_cmd(metrics_stdout* metrics, srsenb::enb_command_interface* cout << " t: starts console trace" << endl; cout << " q: quit srsenb" << endl; cout << " cell_gain: set relative cell gain" << endl; + cout << " sleep: pauses the commmand line operation for a given time in seconds" << endl; cout << " p: starts MAC padding" << endl; cout << endl; }