mirror of
https://github.com/Telecominfraproject/wlan-cloud-owls.git
synced 2026-01-27 10:22:52 +00:00
Merge branch 'WIFI-12378' of https://github.com/telecominfraproject/wlan-cloud-owls into main
This commit is contained in:
@@ -62,7 +62,7 @@ namespace OpenWifi {
|
||||
for(auto it = Simulations_.begin(); it!=end(Simulations_); ) {
|
||||
const auto &id = it->first;
|
||||
const auto &simulation = it->second;
|
||||
std::cout << "Checking sims..." << std::endl;
|
||||
std::cout << "Checking sims...: " << simulation->Details.simulationLength << std::endl;
|
||||
if (simulation->Details.simulationLength != 0 &&
|
||||
(Now - SimStats()->GetStartTime(id)) > simulation->Details.simulationLength) {
|
||||
std::string Error;
|
||||
@@ -124,6 +124,7 @@ namespace OpenWifi {
|
||||
bool SimulationCoordinator::StartSim(std::string &SimId, const std::string &Id,
|
||||
std::string &Error, const std::string &Owner) {
|
||||
std::lock_guard G(Mutex_);
|
||||
|
||||
OWLSObjects::SimulationDetails NewSim;
|
||||
if (!StorageService()->SimulationDB().GetRecord("id", Id, NewSim)) {
|
||||
Error = "Simulation ID specified does not exist.";
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace OpenWifi {
|
||||
|
||||
struct SimulationRecord {
|
||||
SimulationRecord(const OWLSObjects::SimulationDetails & details,Poco::Logger &L, const std::string &id) :
|
||||
Details(details),
|
||||
Runner(details, L, id) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user