Skip to content

Commit

Permalink
Fixed 'recieved' typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Killeroo committed Oct 23, 2017
1 parent baf6585 commit 6362fc4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions PowerPing/Display.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public static void ListenIntroMsg()
/// <param name="packet">Reply packet</param>
/// <param name="address">Reply address</param>
/// <param name="index">Sequence number</param>
/// <param name="replyTime">Time taken before reply recieved in milliseconds</param>
/// <param name="replyTime">Time taken before reply received in milliseconds</param>
public static void ReplyPacket(ICMP packet, String address, int index, TimeSpan replyTime, int bytesRead)
{
// Display with no colour
Expand Down Expand Up @@ -376,13 +376,13 @@ public static void ReplyPacket(ICMP packet, String address, int index, TimeSpan
/// <summary>
/// Display information about a captured packet
/// </summary>
public static void CapturedPacket(ICMP packet, String address, String timeRecieved, int bytesRead)
public static void CapturedPacket(ICMP packet, String address, String timeReceived, int bytesRead)
{
// Display captured packet
Console.BackgroundColor = packet.type > typeColors.Length ? ConsoleColor.Black : typeColors[packet.type];
Console.ForegroundColor = ConsoleColor.Black;
//Console.ForegroundColor = packet.type < 16 ? ConsoleColor.Black : ConsoleColor.Gray;
Console.WriteLine("{0}: ICMPv4: {1} bytes from {2} [type {3}] [code {4}]", timeRecieved, bytesRead, address, packet.type, packet.code);
Console.WriteLine("{0}: ICMPv4: {1} bytes from {2} [type {3}] [code {4}]", timeReceived, bytesRead, address, packet.type, packet.code);

// Reset console colours
ResetColor();
Expand Down Expand Up @@ -479,8 +479,8 @@ public static void PingResults(Ping ping)
{
Console.Write(" General: Sent ");
Console.Write("[ " + results.Sent + " ]");
Console.Write(", Recieved ");
Console.Write("[ " + results.Recieved + " ]");
Console.Write(", Received ");
Console.Write("[ " + results.Received + " ]");
Console.Write(", Lost ");
Console.Write("[ " + results.Lost + " ]");
Console.WriteLine(" (" + percent + "% loss)");
Expand All @@ -498,9 +498,9 @@ public static void PingResults(Ping ping)
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("[ " + results.Sent + " ]");
ResetColor();
Console.Write(", Recieved ");
Console.Write(", Received ");
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("[ " + results.Recieved + " ]");
Console.Write("[ " + results.Received + " ]");
ResetColor();
Console.Write(", Lost ");
Console.ForegroundColor = ConsoleColor.Red;
Expand Down
4 changes: 2 additions & 2 deletions PowerPing/Graph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void DrawBackground()
sentLabelY = Console.CursorTop;

Console.ForegroundColor = ConsoleColor.Green;
Console.Write(" Recieved: ");
Console.Write(" Received: ");
recLabelX = Console.CursorLeft;
recLabelY = Console.CursorTop;
Console.WriteLine();
Expand Down Expand Up @@ -266,7 +266,7 @@ private void UpdateLabels(PingResults results)
Console.SetCursorPosition(recLabelX, recLabelY);
Console.Write(blankLabel);
Console.CursorLeft = Console.CursorLeft - 6;
Console.Write(results.Recieved);
Console.Write(results.Received);

// Update fail label
Console.SetCursorPosition(failLabelX, failLabelY);
Expand Down
4 changes: 2 additions & 2 deletions PowerPing/Ping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void Listen()

// Store results
results.SetPacketType(response.type);
results.Recieved++;
results.Received++;

if (cancelEvent.WaitOne(0))
break;
Expand Down Expand Up @@ -379,7 +379,7 @@ private PingResults SendICMP(PingAttributes attrs)
// Store response info
Results.SetPacketType(response.type);
Results.SetCurResponseTime(responseTimer.Elapsed.TotalMilliseconds);
Results.Recieved++;
Results.Received++;
}
catch (IOException)
{
Expand Down
10 changes: 5 additions & 5 deletions PowerPing/PingResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public class PingResults
// Properties
public TimeSpan TotalRunTime { get { return operationTimer.Elapsed; } } // Total ping operation runtime
public long Sent { get; set; } // Number of sent ping packets
public long Recieved { get; set; } // Number of recieved packets
public long Received { get; set; } // Number of received packets
public long Lost { get; set; } // Amount of lost packets
public double MaxTime { get; private set; } // Highest ping reply time
public double MinTime { get; private set; } // Lowest ping reply time
public double CurTime { get; private set; } // Most recent packet response time
public long ErrorPackets { get; private set; } // Number of Error packet recieved
public long GoodPackets { get; private set; } // Number of good replies recieved
public long OtherPackets { get; private set; } // Number of other packet types recieved
public long ErrorPackets { get; private set; } // Number of Error packet received
public long GoodPackets { get; private set; } // Number of good replies received
public long OtherPackets { get; private set; } // Number of other packet types received
//public static ConcurrentStack<string> ActiveHosts = new ConcurrentStack<string>(); // Stores found hosts during scan

// Local variables
Expand All @@ -31,7 +31,7 @@ public PingResults()
{
// Default properties
Sent = 0;
Recieved = 0;
Received = 0;
Lost = 0;
MaxTime = 0;
MinTime = 0;
Expand Down
Binary file modified build/PowerPing.exe
Binary file not shown.

0 comments on commit 6362fc4

Please sign in to comment.