prevent server lockups

This commit is contained in:
David Rose 2007-02-14 11:12:18 +00:00
parent 8bbc4f455d
commit fee4f77b76
1 changed files with 5 additions and 2 deletions

View File

@ -506,10 +506,13 @@ compute_average_pixel_data(PStatStripChart::FrameData &result,
float then = now - pstats_average_time;
while (thread_data->get_frame(then_i).get_end() < then) {
int latest_frame = thread_data->get_latest_frame_number();
while (then_i <= latest_frame &&
thread_data->get_frame(then_i).get_end() < then) {
then_i++;
}
while (thread_data->get_frame(now_i).get_end() < now) {
while (now_i <= latest_frame &&
thread_data->get_frame(now_i).get_end() < now) {
now_i++;
}