mirror of
https://github.com/samba-team/samba.git
synced 2025-09-07 21:44:22 +03:00
vfs_smb_traffic_analyzer: fix off by a second bug
convert_timespec_to_time_t is rounding but here we keep track of milliseconds here - so we should use plain the tv_sec.
This commit is contained in:
@@ -421,7 +421,7 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GetTimeOfDay(&tv);
|
GetTimeOfDay(&tv);
|
||||||
tv_sec = convert_timespec_to_time_t(convert_timeval_to_timespec(tv));
|
tv_sec = tv.tv_sec;
|
||||||
tm = localtime(&tv_sec);
|
tm = localtime(&tv_sec);
|
||||||
if (!tm) {
|
if (!tm) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user