X-Git-Url: http://plrg.eecs.uci.edu/git/?p=pingpong.git;a=blobdiff_plain;f=Code%2FProjects%2FSmartPlugDetector%2Fsrc%2Fmain%2Fjava%2Fedu%2Fuci%2Fiotproject%2Futil%2FPcapPacketUtils.java;h=cee09fed8c1c78ddc19459470864b01571f6fd93;hp=f07072abe8d9daf8ddd9a9bd2ce40e022ed5ee79;hb=5f2d56277c6be7130fb2f8faf9b2706d3e861265;hpb=9f79237b795c928a55b435e12aa6ab47dda87bce diff --git a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/util/PcapPacketUtils.java b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/util/PcapPacketUtils.java index f07072a..cee09fe 100644 --- a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/util/PcapPacketUtils.java +++ b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/util/PcapPacketUtils.java @@ -318,9 +318,9 @@ public final class PcapPacketUtils { public static List>> sortSignatures(List>> signatures) { // TODO: This is the simplest solution!!! Might not cover all corner cases. // TODO: Sort the list of lists based on the first packet's timestamps! - //Collections.sort(signatures, (p1, p2) -> { - // return p1.get(0).get(0).getTimestamp().compareTo(p2.get(0).get(0).getTimestamp()); - //}); +// Collections.sort(signatures, (p1, p2) -> { +// return p1.get(0).get(0).getTimestamp().compareTo(p2.get(0).get(0).getTimestamp()); +// }); // TODO: The following is a more complete solution that covers corner cases. // Sort the list of lists based on one-to-one comparison between timestamps of signatures on both lists. // This also takes into account the fact that the number of signatures in the two lists could be different.