From: gokuls Date: Thu, 25 May 2017 05:13:10 +0000 (-0400) Subject: Fix for vLB5.0 tests X-Git-Tag: 1.0.0-Amsterdam~275 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b29bcee4fe37639d957e92ecd91317371f263d43;p=demo.git Fix for vLB5.0 tests Change-Id: Iccc8edbe555a43801b1d732a44ae1e5d8cdf87e0 Signed-off-by: Gokul Singaraju --- 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;