
JMitzimberg at yci
Jan 22, 2002, 12:19 PM
Post #1 of 1
(113 views)
Permalink
|
|
ntop-current - Jan 21, 2001
|
|
I was having a problem with column sorts in any of the Data Sent tables. None of the Data Sent tables are sorted. When I clicked the header to try and sort them, the cooresponding Data Received table displayed, sorted properly. I found that in your printHeader function in reportUtils uses the sortSendMode variable to decide which header to print, but this variable is not declared anywhere in the function. I had the calling funciton pass the variable in and the proper table now displays, but not sorted. I don't think the table is being passed into the quicksort function correctly. Although I haven't had the time to parse through your quicksort algorithm, here is what I did so far. reportUtils.c old: 241: void printHeader(int reportType, int revertOrder, u_int column) { new: 241: void printHeader(int sortSendMode, int reportType, int revertOrder, u_int column) { globals-report.h old: 80: extern void printHeader(int reportType, int revertOrder, u_int column); new: 80: extern void printHeader(int sortSendMode, int reportType, int revertOrder, u_int column); report.c old: 143: printHeader(sortSendMode, reportType, revertOrder, abs(sortedColumn)); new: 143: printHeader(reportType, revertOrder, abs(sortedColumn)); Justin Mitzimberg Information Security Analyst Yamanouchi Consumer Inc. (541) 864-3744 jmitzimberg [at] bco
|