summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgokuls <goksing@gmail.com>2017-05-25 01:13:10 -0400
committergokuls <goksing@gmail.com>2017-05-25 01:28:27 -0400
commitb29bcee4fe37639d957e92ecd91317371f263d43 (patch)
tree4c1b511c77dc6e3ba1de8c8b3ab163d16b02f603
parentd5ae9ca07cffe21551559764a602b0ea049d3423 (diff)
Fix for vLB5.0 tests
Change-Id: Iccc8edbe555a43801b1d732a44ae1e5d8cdf87e0 Signed-off-by: Gokul Singaraju <goksing@gmail.com>
-rw-r--r--vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c5
1 files changed, 3 insertions, 2 deletions
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;