Revision 9818ca86 streamer.c

View differences:

streamer.c
66 66

  
67 67
extern int NEIGHBORHOOD_TARGET_SIZE;
68 68
extern uint64_t CB_SIZE_TIME;
69
extern double desired_bw;
69 70
extern double desired_rtt;
70 71
extern double alpha_target;
71 72

  
......
104 105
    "\t[-F config]: configure the output module\n"
105 106
    "\t[-a alpha]: set the topology alpha value (from 0 to 100)\n"
106 107
    "\t[-t rtt]: set the RTT threshold (in ms) for desired neighbours\n"
108
    "\t[--desired_bw bw]: set the BW threshold (in bits/s) for desired neighbours. Use of K(ilo), M(ega) allowed, e.g 0.8M\n"
107 109
    "\n"
108 110
    "Special Source Peer options\n"
109 111
    "\t[-m chunks]: set the number of copies the source injects in the overlay.\n"
......
176 178
        {"playout_limit", required_argument, 0, 0},
177 179
        {"randomize_start", required_argument, 0, 0},
178 180
        {"capacity_override", required_argument, 0, 0},
181
        {"desired_bw", required_argument, 0, 0},
179 182
	{0, 0, 0, 0}
180 183
  };
181 184

  
......
190 193
        if( strcmp( "playout_limit", long_options[option_index].name ) == 0 ) { CB_SIZE_TIME = atoi(optarg); }
191 194
        if( strcmp( "randomize_start", long_options[option_index].name ) == 0 ) { randomize_start = atoi(optarg); }
192 195
        if( strcmp( "capacity_override", long_options[option_index].name ) == 0 ) { capacity_override = atod_kmg(optarg); }
196
        if( strcmp( "desired_bw", long_options[option_index].name ) == 0 ) { desired_bw = atod_kmg(optarg); }
193 197
        break;
194 198
      case 'a':
195 199
        alpha_target = (double)atoi(optarg) / 100.0;

Also available in: Unified diff