mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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:
parent
20e7b4ec74
commit
a8d8cf00ea
@ -421,7 +421,7 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
|
||||
}
|
||||
|
||||
GetTimeOfDay(&tv);
|
||||
tv_sec = convert_timespec_to_time_t(convert_timeval_to_timespec(tv));
|
||||
tv_sec = tv.tv_sec;
|
||||
tm = localtime(&tv_sec);
|
||||
if (!tm) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user