Use and propagate microsecond-precision timestamps to FormatTime

This enables sub-second precision timestamp formatting for logs and
clients without server-time.
This commit is contained in:
Vladimir Panteleev committed 2017-10-26 00:00:51 +00:00
1 parent 901a21e91b
commit 03c4c0b165
6 files changed
+21 -10

No files matched your search

+2 -2
View File
@@ -271,9 +271,9 @@ void CLogMod::PutLog(const CString& sLine,
}
CString sPath;
time_t curtime;
timeval curtime;
time(&curtime);
gettimeofday(&curtime, nullptr);
// Generate file name
sPath = CUtils::FormatTime(curtime, m_sLogPath, GetUser()->GetTimezone());
if (sPath.empty()) {