19,7 → 19,7 |
#include <pthread.h> |
#include <stdlib.h> |
|
//#define FSF_DEBUG |
#define FSF_DEBUG |
|
int current_server=0; |
server_elem server_list[FSF_MAX_N_SERVERS]; |
514,8 → 514,8 |
isok=1; |
for (i=0; i<current_server; i++) { |
if (server_list[i].Qs!=0 && server_list[i].U>server_list[i].Umin) { |
temp_U=server_list[i].U; |
temp_U=temp_U-(current_bandwidth-U)*server_list[i].Qs/Qt; |
temp_U=(unsigned long int)server_list[i].U; |
temp_U=temp_U-(current_bandwidth-(unsigned long int)U)*server_list[i].Qs/Qt; |
|
if (temp_U<server_list[i].Umin) { |
server_list[i].U=server_list[i].Umin; |