fixed time_now_string() to not include a line feed at the end
This commit is contained in:
parent
44603cf049
commit
ecb20f97fd
|
@ -44,7 +44,10 @@ namespace libtorrent
|
|||
inline char const* time_now_string()
|
||||
{
|
||||
time_t t = std::time(0);
|
||||
return std::ctime(&t);
|
||||
tm* timeinfo = std::localtime(&t);
|
||||
static char str[200];
|
||||
std::strftime(str, 200, "%b %d %X", timeinfo);
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue