diff --git a/src/main/java/de/hsh/inform/orientdb_project/CommandLineInterface.java b/src/main/java/de/hsh/inform/orientdb_project/CommandLineInterface.java index 58da80f..afbb874 100644 --- a/src/main/java/de/hsh/inform/orientdb_project/CommandLineInterface.java +++ b/src/main/java/de/hsh/inform/orientdb_project/CommandLineInterface.java @@ -136,8 +136,9 @@ public class CommandLineInterface { } private void help() { - HelpFormatter formater = new HelpFormatter(); - formater.printHelp(" ", options); + HelpFormatter formatter = new HelpFormatter(); + formatter.setWidth(120); + formatter.printHelp(" ", options); } public void run() { diff --git a/src/main/java/de/hsh/inform/orientdb_project/model/EthernetFrameModel.java b/src/main/java/de/hsh/inform/orientdb_project/model/EthernetFrameModel.java index c0b6694..cc34471 100644 --- a/src/main/java/de/hsh/inform/orientdb_project/model/EthernetFrameModel.java +++ b/src/main/java/de/hsh/inform/orientdb_project/model/EthernetFrameModel.java @@ -4,7 +4,6 @@ import org.pcap4j.packet.EthernetPacket; import com.orientechnologies.orient.core.metadata.schema.OType; import com.orientechnologies.orient.core.record.impl.ODocument; -import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx; import com.tinkerpop.blueprints.impls.orient.OrientVertexType; @@ -73,5 +72,20 @@ public class EthernetFrameModel implements Model { return arguments; } + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("EthernetFrame["); + sb.append(this.timestamp); + sb.append("."); + sb.append(this.microseconds); + sb.append("] "); + sb.append(this.sourceMac); + sb.append(" -> "); + sb.append(this.targetMac); + sb.append(" ("); + sb.append(this.size); + sb.append(" bytes) "); + return sb.toString(); + } }