summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-11-09 11:03:02 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-11-09 11:03:02 +0000
commitef30aee86af468659aa3051a37edc15d9802e2b4 (patch)
treecd6e01e6cb3898a73b98880926684275fdbff018 /capinfos.c
parent38edae1c718f690281958ff43d1154abc1c96247 (diff)
downloadwireshark-ef30aee86af468659aa3051a37edc15d9802e2b4.tar.gz
nstime_to_sec() and capinfos secs_nsecs() seems to be same.
svn path=/trunk/; revision=53185
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/capinfos.c b/capinfos.c
index 89ba0c6aeb..af69da1478 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -447,12 +447,6 @@ time_string(time_t timer, capture_info *cf_info, gboolean want_lf)
return time_string_buf;
}
-static double
-secs_nsecs(const nstime_t * nstime) /* nstime_to_sec */
-{
- return (nstime->nsecs / 1000000000.0) + (double)nstime->secs;
-}
-
static void print_value(const gchar *text_p1, gint width, const gchar *text_p2, double value) {
if (value > 0.0)
printf("%s%.*f%s\n", text_p1, width, value, text_p2);
@@ -856,7 +850,7 @@ process_cap_file(wtap *wth, const char *filename)
phdr = wtap_phdr(wth);
if (phdr->presence_flags & WTAP_HAS_TS) {
prev_time = cur_time;
- cur_time = secs_nsecs(&phdr->ts);
+ cur_time = nstime_to_sec(&phdr->ts);
if(packet==0) {
start_time = cur_time;
stop_time = cur_time;