[ECOS] nc_test_slave.c fix

Grant Edwards grante@visi.com
Thu Apr 6 12:32:00 GMT 2000


In the calibrate_load() function in nc_test_slave.c, the while(1)
loop will never terminate if percent_load >= desired_load && delta == 1.

The code at the end of the loop needs to be changed from 

            load_thread_level -= (delta / 2);
to	    
            load_thread_level -= (delta / 2) ? (delta / 2) : 1;

-- 
Grant Edwards
grante@visi.com


More information about the Ecos-discuss mailing list