summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-30 19:49:35 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-30 19:52:10 +0200
commita8d8cf00eae08466ef6a232ccbb5ede9ee4d9626 (patch)
tree04f50ce425baf341ab9b906f2b2bdec79d2ed6ef
parent20e7b4ec744dead1544a4b7625dc3fcb5d802418 (diff)
downloadsamba-a8d8cf00eae08466ef6a232ccbb5ede9ee4d9626.tar.gz
samba-a8d8cf00eae08466ef6a232ccbb5ede9ee4d9626.tar.bz2
samba-a8d8cf00eae08466ef6a232ccbb5ede9ee4d9626.zip
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.
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index 3cafdc7d37..53ea5f9339 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -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;