aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-10-08 20:22:21 +0000
committerGerald Combs <gerald@wireshark.org>2012-10-08 20:22:21 +0000
commit34b3dc498b42410cea126c0ef35519bd3a894c3a (patch)
treec705276cd1ef529d384b0b70f458c22672117693 /capture_sync.c
parentce4967bfecd1ae7ad6f705d2040878a27b254515 (diff)
Add a cast.
svn path=/trunk/; revision=45407
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 013d8224ce..786437cea0 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -1803,7 +1803,7 @@ sync_pipe_wait_for_child(int fork_child, gchar **msgp)
g_get_current_time(&end_time);
elapsed = (end_time.tv_sec - start_time.tv_sec) +
- ((end_time.tv_usec - start_time.tv_usec) / 1e6);
+ ((end_time.tv_usec - start_time.tv_usec) / (float) 1e6);
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "sync_pipe_wait_for_child: capture child closed after %.3fs", elapsed);
return ret;
}