From 4237451c4989a0a782f209652540cffb36cc64c5 Mon Sep 17 00:00:00 2001 From: Alexander Zangerl Date: Wed, 11 May 2016 14:20:39 +1000 Subject: [PATCH] fixed stupid mistake re msec inclusion in start and end timestamps (received was ok) --- bin/nf_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nf_common.c b/bin/nf_common.c index 93f6aa7..6d05777 100644 --- a/bin/nf_common.c +++ b/bin/nf_common.c @@ -1877,13 +1877,13 @@ static void String_ReceivedRaw(master_record_t *r, char *string) static void String_FirstSeenRaw(master_record_t *r, char *string) { /* snprintf does write \0, and the max is INCL the terminating \0 */ - snprintf(string, MAX_STRING_LENGTH, "%.3f", r->first/1000.0); + snprintf(string, MAX_STRING_LENGTH, "%u.%03u", r->first, r->msec_first); } static void String_LastSeenRaw(master_record_t *r, char *string) { /* snprintf does write \0, and the max is INCL the terminating \0 */ - snprintf(string, MAX_STRING_LENGTH, "%.3f", r->last/1000.0); + snprintf(string, MAX_STRING_LENGTH, "%u.%03u", r->last, r->msec_last); }