]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Small change of constatnts in fwp_vrestest2
authorMartin <molnam1@fel.cvut.cz>
Wed, 5 Nov 2008 11:45:07 +0000 (12:45 +0100)
committerMartin <molnam1@fel.cvut.cz>
Wed, 5 Nov 2008 11:45:07 +0000 (12:45 +0100)
fwp/lib/fwp/fwp_vres.c
fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest2.c

index 575cc4060a52134eccfa588be0e26232bb06521b..42305748281ddc562242b1c11417eb3d08fa3683 100644 (file)
@@ -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);
index 687bbd31c6ff412bdea2e4e1788cbf267a005fe9..22c5838f5a1d234c70a54b584bbe0e9ce793ba98 100644 (file)
@@ -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);