mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Use %jd instead of %ld for time_t
This commit is contained in:
@@ -203,7 +203,7 @@ void RtpSource::updateRtcpData(
|
|||||||
timeval ntpTime = zm::chrono::duration_cast<timeval>(
|
timeval ntpTime = zm::chrono::duration_cast<timeval>(
|
||||||
Seconds(ntpTimeSecs) + Microseconds((Microseconds::period::den * (ntpTimeFrac >> 16)) / (1 << 16)));
|
Seconds(ntpTimeSecs) + Microseconds((Microseconds::period::den * (ntpTimeFrac >> 16)) / (1 << 16)));
|
||||||
|
|
||||||
Debug(5, "ntpTime: %ld.%06ld, rtpTime: %x", ntpTime.tv_sec, ntpTime.tv_usec, rtpTime);
|
Debug(5, "ntpTime: %jd.%06ld, rtpTime: %x", ntpTime.tv_sec, ntpTime.tv_usec, rtpTime);
|
||||||
|
|
||||||
if ( mBaseTimeNtp.tv_sec == 0 ) {
|
if ( mBaseTimeNtp.tv_sec == 0 ) {
|
||||||
mBaseTimeReal = std::chrono::system_clock::now();
|
mBaseTimeReal = std::chrono::system_clock::now();
|
||||||
|
|||||||
Reference in New Issue
Block a user