Commit c9eabc0c authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Reverted the naming of the object after a CI unit test failure

parent fbcaa02c
......@@ -25,7 +25,6 @@
#include <sstream>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <iomanip>
namespace cta { namespace objectstore {
......@@ -37,9 +36,7 @@ m_logger(logger) {
m_nextId=0;
std::stringstream aid;
// Get time
struct timeval tv;
::gettimeofday(&tv,NULL);
time_t now = tv.tv_sec;
time_t now = time(0);
struct tm localNow;
localtime_r(&now, &localNow);
// Get hostname
......@@ -55,8 +52,7 @@ m_logger(logger) {
<< std::setw(2) << localNow.tm_mday << "-"
<< std::setw(2) << localNow.tm_hour << ":"
<< std::setw(2) << localNow.tm_min << ":"
<< std::setw(2) << localNow.tm_sec << ":"
<< tv.tv_usec << "-"
<< std::setw(2) << localNow.tm_sec << "-"
<< id;
m_agentAddress = aid.str();
// Initialize the serialization token for queued actions (lock will make helgrind
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment