From: Martin Date: Wed, 5 Nov 2008 11:45:07 +0000 (+0100) Subject: Small change of constatnts in fwp_vrestest2 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fwp.git/commitdiff_plain/b4dd059e77b350247552fd202ef6b105e60e04da Small change of constatnts in fwp_vrestest2 --- diff --git a/fwp/lib/fwp/fwp_vres.c b/fwp/lib/fwp/fwp_vres.c index 575cc40..4230574 100644 --- a/fwp/lib/fwp/fwp_vres.c +++ b/fwp/lib/fwp/fwp_vres.c @@ -383,10 +383,9 @@ static void* fwp_vres_tx_thread(void *_vres) rc = _fwp_vres_send(vres->ac_sockd, msgb); if (!(rc < 0)) { FWP_DEBUG("Message sent through AC%d\n",ac_id); - /* Switch to this in the future - * curr_budget+= msgb->len; - */ - curr_budget++; + /* Switch to this in the future */ + //curr_budget+= msgb->len; + curr_budget++; } fwp_msgb_free(msgb); diff --git a/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c b/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c index 687bbd3..22c5838 100644 --- a/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c +++ b/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c @@ -36,7 +36,7 @@ void* sender() vparam1.ac_id = FWP_AC_VO; vparam1.budget = 3; - vparam1.period.tv_sec = 2; + vparam1.period.tv_sec = 5; vparam1.period.tv_nsec = 0; printf("Create vres1\n"); @@ -60,10 +60,10 @@ void* sender() count = 0; while (count < NUM){ count++; - sprintf(msg1,"msg%d",count); + sprintf(msg1,"msg%d sent\n",count); fwp_send(sepoint_d1, msg1, sizeof(msg1), 0); - printf("sent\n"); + printf(msg1); /*clock_gettime(CLOCK_MONOTONIC, &sendtime); FWP_DEBUG("Sent %d: sec = %ld nsec = %ld \n", count, sendtime.tv_sec, sendtime.tv_nsec);