summaryrefslogtreecommitdiffstats
path: root/plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-11-02 18:37:56 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-03 13:29:13 +0000
commit393252a6b1757690fb83ce744e8e63af46a64453 (patch)
tree438f554a6f2060f14b82357c29d8fe32ba3c5b63 /plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c
parented4a2fdd4d62c46a2237157cd3a72bda16fceb6a (diff)
Timestamp now a 64-bit integer: ns since 1/1/1970
Properly initialize allocated buffers Change-Id: Ib2005e605c89a164a4856790db6968fcd7520f5c Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c')
-rw-r--r--plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c b/plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c
index 824fc50ec57..ac508582669 100644
--- a/plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c
+++ b/plugins/flowperpkt-plugin/flowperpkt/flowperpkt.c
@@ -486,6 +486,10 @@ flowperpkt_init (vlib_main_t * vm)
vec_validate (fm->frames_per_worker, num_threads - 1);
vec_validate (fm->next_record_offset_per_worker, num_threads - 1);
+ /* Set up time reference pair */
+ fm->vlib_time_0 = vlib_time_now (vm);
+ fm->nanosecond_time_0 = unix_time_now_nsec ();
+
return error;
}