From b29bcee4fe37639d957e92ecd91317371f263d43 Mon Sep 17 00:00:00 2001 From: gokuls Date: Thu, 25 May 2017 01:13:10 -0400 Subject: Fix for vLB5.0 tests Change-Id: Iccc8edbe555a43801b1d732a44ae1e5d8cdf87e0 Signed-off-by: Gokul Singaraju --- vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vnfs/VESreporting_vLB5.0') diff --git a/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c b/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c index 1dae8bbf..643997ab 100644 --- a/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c +++ b/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c @@ -37,6 +37,8 @@ typedef struct dummy_vpp_metrics_struct { void read_vpp_metrics(vpp_metrics_struct *, char *); +unsigned long long epoch_start = 0; + int main(int argc, char** argv) { EVEL_ERR_CODES evel_rc = EVEL_SUCCESS; @@ -92,7 +94,7 @@ int main(int argc, char** argv) memset(last_vpp_metrics, 0, sizeof(vpp_metrics_struct)); read_vpp_metrics(last_vpp_metrics, vnic); gettimeofday(&time_val, NULL); - start_epoch = time_val.tv_sec * 1000000 + time_val.tv_usec; + epoch_start = time_val.tv_sec * 1000000 + time_val.tv_usec; sleep(READ_INTERVAL); /***************************************************************************/ @@ -182,7 +184,6 @@ int main(int argc, char** argv) else { printf("New measurement report failed (%s)\n", evel_error_string()); } - evel_measurement_free_vnic_performance(vnic_performance); last_vpp_metrics->bytes_in = curr_vpp_metrics->bytes_in; last_vpp_metrics->bytes_out = curr_vpp_metrics->bytes_out; -- cgit 1.2.3-korg