Skip to content
Snippets Groups Projects
Commit 36908921 authored by RicardoFonseca's avatar RicardoFonseca
Browse files

Fixed srcPort bug in compareTo()

parent ef9e76af
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ public class Link implements Comparable<Link> {
return (int) (this.getSrc().getLong() - a.getSrc().getLong());
if (this.getSrcPort() != a.getSrcPort())
return (int) (this.getSrc().getLong() - a.getSrc().getLong());
return (int) (this.getSrcPort().getLong() - a.getSrcPort().getLong());
if (this.getDst() != a.getDst())
return (int) (this.getDst().getLong() - a.getDst().getLong());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment