Fixed order freezing bug.

This commit is contained in:
pdw
2003-05-19 21:35:48 +00:00
parent 678f924d77
commit 489a65336d
2 changed files with 8 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ $Id$
Added 1-line display options.
Added display scrolling.
Fixed code for obtaining hardware address (on Linux at least)
0.11 08/01/03

11
ui.c
View File

@@ -379,7 +379,12 @@ void make_screen_list() {
line->sent[i] /= history_length(i);
}
sorted_list_insert(&screen_list, line);
/* Don't make a new, sorted screen list if order is frozen
*/
if(!options.freezeorder) {
sorted_list_insert(&screen_list, line);
}
}
}
@@ -464,9 +469,7 @@ void analyse_data() {
}
if(!options.freezeorder) {
make_screen_list();
}
make_screen_list();
calculate_totals();