Skip to content

Commit

Permalink
Ping-flood: small correct
Browse files Browse the repository at this point in the history
  • Loading branch information
harp077 committed Apr 18, 2022
1 parent 9c9a010 commit 3037f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/my/harp07/PjFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class PjFrame extends javax.swing.JFrame {
public static String currentLAF = "de.muntjak.tinylookandfeel.TinyLookAndFeel";
public static String currentTheme = "lib/themes/Default.theme";
public static List<String> tinyTemes = new ArrayList<>();
public static String zagolovok = "Pure Java Network Tools, v1.0.58, build 18-04-2022";
public static String zagolovok = "Pure Java Network Tools, v1.0.60, build 18-04-2022";
//public static String currentLAF = "org.pushingpixels.substance.api.skin.SubstanceSaharaLookAndFeel";
//public static String currentLAF = "javax.swing.plaf.metal.MetalLookAndFeel";
//public ImageIcon snmpIcon33 = new ImageIcon(getClass().getResource("/mib-tree-3.jpg"));
Expand Down
1 change: 1 addition & 0 deletions src/main/java/my/harp07/PjPingFlood.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static void runPingFlood(String ip, int timeout, JTextArea ta) {
ta.append("\nall time = " + (end - run) + " msec");
ta.append("\nping's with response = " + N);
ta.append("\nping's with not response = " + M);
ta.append("\nPackets Loss, percent = " + String.format("%.2f", 100*(0.0+M)/(M+N)) + " %");
ta.append("\nAverage Packets Per Second = " + 1000 * (M + N) / (end - run) + " pps\n");
}).start();
}
Expand Down

0 comments on commit 3037f3a

Please sign in to comment.