This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
nc_test_slave.c fix
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] nc_test_slave.c fix
- From: Grant Edwards <grante at visi dot com>
- Date: Thu, 6 Apr 2000 14:31:56 -0500
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