Skip to content

Commit

Permalink
Cleaned up graph average code
Browse files Browse the repository at this point in the history
  • Loading branch information
Killeroo committed Jan 15, 2021
1 parent c6efd43 commit 7eff95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Commands/Graph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class Graph
private int m_LegendLeftPadding = 16;
private int m_StartScale = 5; // Stops graph from scaling in past its start scale
private int m_Scale = 5;//50; // Our current yaxis graph scale
private double lastAvg = 0;
private double lastRes = 0;

// Limits refreshing display too quickly
// NOTE: The actual display update rate may be limited by the ping interval
Expand Down Expand Up @@ -584,9 +586,6 @@ public void DrawYAxisLabels()
/// Update graph legend text labels
/// </summary>
/// <param name="results"></param>
double lastAvg = 0;
double lastRes = 0;
int count = 0;
private void UpdateLegend(PingResults results)
{
// save cursor location
Expand Down
1 change: 1 addition & 0 deletions src/Core/Display.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public static void SetAsciiReplySymbolsTheme(int theme)
Written by Matthew Carney [[email protected]] =^-^=
Find the project here [https://github.com/Killeroo/PowerPing]
";

const string EXAMPLE_MSG_PAGE_1 =
Expand Down

0 comments on commit 7eff95e

Please sign in to comment.