]> git.ipfire.org Git - thirdparty/squid.git/commit
Profiler: fix report sorting algorithm
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Jan 2011 02:23:48 +0000 (15:23 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Jan 2011 02:23:48 +0000 (15:23 +1300)
commit1e6e2c8a9b7fdf7ae5eae41e775a677f697e2051
treec8814b7d9179a4d4a80fae7cc4dd8d7decb7dbee
parentcf3a562b53aedddfd355d67e60ce4ba1213846ba
Profiler: fix report sorting algorithm

The sorting was performed in a way to exclude the UNACCOUNTED and leave it
first in the display list. However with the new auto-genenerated enum all
other entries are at indeterminate locations. Using hash_lookup resulted
in only half teh list being sorted.
Fix that by referencing from UNACCOUNTED which is guaranteed to be first.
src/ProfStats.cc