Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings NUTSS
 
 
Summary Tracker Lists CVS Files
 

CVS | Administration

Diff for /libnutss/examples/slinks_variable_load.c between versions 1.22 and 1.23

version 1.22, 2007/07/12 18:52:38 version 1.23, 2007/07/15 14:47:20
Line 17 Line 17
 #define strlenn(s) (s) ? strlen(s) : 0  #define strlenn(s) (s) ? strlen(s) : 0
 #define randint(N) ((int)(rand() / (((double)RAND_MAX + 1) / (N))))  #define randint(N) ((int)(rand() / (((double)RAND_MAX + 1) / (N))))
 #define assert(p) if(!(p)) { printf("Assertion '%s' FAILED!\n", #p); exit(1); }  #define assert(p) if(!(p)) { printf("Assertion '%s' FAILED!\n", #p); exit(1); }
#define REDUNDANCY4 #define REDUNDANCY7
   
 typedef struct flow {  typedef struct flow {
     int duration;      int duration;
Line 176  int main(int argc, char **argv) {  Line 176  int main(int argc, char **argv) { 
     swp = swaplinks_new("cloud9", &reg, peers, peers);      swp = swaplinks_new("cloud9", &reg, peers, peers);
   
     // let swaplinks get going.      // let swaplinks get going.
   sleep(5);    sleep(10);
   
     pthread_create(&tid, NULL, recvthread, swp);      pthread_create(&tid, NULL, recvthread, swp);
   

Removed from v.1.22  
changed lines
  Added in v.1.23


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
 

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science


Powered By GForge Collaborative Development Environment