Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
antara-chugh committed Aug 28, 2024
2 parents 189b3fc + 2c5ad90 commit b86bc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 4 additions & 6 deletions tests/examine_behavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,11 @@ class ExamineBehavior
}

std::string delimiter = "|";
std::ifstream sch_log( "scheduler.log" );
for( std::string line; getline( sch_log, line); )
std::ofstream sch_log("scheduler.log");
for (const auto& log = scheduler->log.front();
scheduler->log.size() > 0; scheduler->log.pop())
{
std::string ensemble = line.substr(0,line.find(delimiter));
std::string idx = line.substr(line.find(delimiter) + 1);


sch_log << std::get<0>(log) << "|" << std::get<1>(log) << "\n";
}


Expand Down
6 changes: 2 additions & 4 deletions tests/test_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,13 @@ Log::Log(DeploymentSchedule_ *task, std::uint32_t time) {
DeploymentSchedule_ *table = task;
this->taskName = table->taskName;
this->runTime = time;
std::cout << "Log created with taskName: " << this->taskName
<< ", runTime: " << this->runTime << std::endl;

}

Log::Log(const char* name, std::uint32_t time) {
this->taskName = name;
this->runTime = time;
std::cout << "Log created with taskName: " << this->taskName
<< ", runTime: " << this->runTime << std::endl;

}

const char* Log::getName(void)
Expand Down

0 comments on commit b86bc2a

Please sign in to comment.