This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

nc_test_slave.c fix



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]