return -1;
}
- // we measure the budget in number of RTEP packets of maximum size
+ // we measure the budget in number of RTEP packets of maximum size
number_of_packets = nbytes / MAX_RTEP_MTU + 1;
- // we store the budget in number of packets instead of in time. We
- // use a field in the timespec structure.
+ // we store the budget in number of packets instead of in time. We
+ // use a field in the timespec structure.
budget->tv_sec = number_of_packets;
DEBUG("bytes: %d -> budget: %d\n", nbytes, budget->tv_sec);
return 0;