Skip to content

Commit

Permalink
Sorts hostnames in decreasing order...
Browse files Browse the repository at this point in the history
... first criterion is 'count', then, the second criterion 'hostname'
  • Loading branch information
jpcofr committed Sep 26, 2023
1 parent 191ff4a commit e36e2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/HttpAnalyzer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void printMethods(const HttpRequestStats& reqStatscollector)
*/
bool hostnameComparer(const std::pair<std::string, int>& leftHost, const std::pair<std::string, int>& rightHost)
{
return leftHost.second > rightHost.second || (leftHost.second == rightHost.second && leftHost.first < rightHost.first);
return leftHost.second > rightHost.second || (leftHost.second == rightHost.second && leftHost.first > rightHost.first);
}

/**
Expand Down

0 comments on commit e36e2f6

Please sign in to comment.