commented time file writing in again
This commit is contained in:
parent
e6f55ba2c1
commit
3a6beafae5
@ -1708,11 +1708,11 @@ ReturnValue_t CoreController::timeFileHandler() {
|
||||
}
|
||||
std::string fileName = currMntPrefix + TIME_FILE;
|
||||
std::ofstream timeFile(fileName);
|
||||
// if (not timeFile.good()) {
|
||||
// sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno)
|
||||
// << std::endl;
|
||||
// return RETURN_FAILED;
|
||||
// }
|
||||
if (not timeFile.good()) {
|
||||
sif::error << "CoreController::timeFileHandler: Error opening time file: " << strerror(errno)
|
||||
<< std::endl;
|
||||
return RETURN_FAILED;
|
||||
}
|
||||
timeFile << "UNIX SECONDS: " << currentTime.tv_sec << std::endl;
|
||||
}
|
||||
return RETURN_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user