aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Sorting of "known clients" gives strange results  (Read 2003 times)

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Sorting of "known clients" gives strange results
« on: January 12, 2005, 01:15:25 AM »

Hi!
I use aMule-cvs-20050111 and saw a strange behaviour in the sorting of known clients:

When I sort them by "transferred up" the result isn't related to the ammount of data uploaded that is shown. I can't figure out how the clients are sorted, it looks quite random to me.

When I sort them by "transferred down" with the arrow upwards the result once again looks random to me. When changing to arrow dhowing down the result gets sorted by MB transferred down with the lowest numbers on top and the highest at the bottom. This is the opposite of how sorting works on the upload tab so it is quite confusing, too.

I hope I made myself clear, after all it just says "Somebody should take a look at the sorting part of the code". :P
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Sorting of "known clients" gives strange results
« Reply #1 on: January 12, 2005, 01:44:12 PM »

This happens on what? The Client-list?
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Sorting of "known clients" gives strange results
« Reply #2 on: January 12, 2005, 03:19:46 PM »

Yes, I think this is the clients list. (Transfer tab, lower part, where you can cycle through yuor uploads, the client in your queue and the clients list(?) )
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Sorting of "known clients" gives strange results
« Reply #3 on: January 12, 2005, 04:58:15 PM »

Right. Found and fixed.
I'm committing a patch now. ;)
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Sorting of "known clients" gives strange results
« Reply #4 on: January 17, 2005, 05:14:51 PM »

OK, just switched to amule-cvs-20050117. Sorting on "transferred down" now works for me, but on "transferred up" there's still a little bug:

On top of the list there are some (6-8) clients with 0 bytes transferred up, upload status unknown, no username and an icon with a donkey and a "?". Their download status says "connecting" and it seems that after amule got connected to them they get sorted in correctly.

I definitely have to find out how to make a screenshot under vnc, that would make things a lot easier... :))
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.