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
[EMAIL PROTECTED]


_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop-dev

Reply via email to