Commit c1dc11fe authored by Manolis Surligas's avatar Manolis Surligas

Fix timestamp not showing on every message at STDOUT

parent 2fb1bfad
......@@ -95,7 +95,8 @@ namespace gr
if(d_timestamp) {
std::time_t t = std::time(nullptr);
std::tm tm = *std::localtime(&t);
d_fos << "[" << strftime(buf, sizeof(buf), "%F %T %z", &tm) << "]";
strftime(buf, sizeof(buf), "%F %T %z", &tm);
std::cout << "[" << buf << "]";
}
switch (d_format)
......
Markdown is supported
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