Skip to content

Commit

Permalink
Fix Graphing Points configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
deathmarine committed May 18, 2018
1 parent bb25104 commit c69644a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/no/url/ethmonitor/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class Main implements Runnable {
boolean detailed_result = false;
int verbose = 0;
int poling_rate = 1000;
int graphing_points = 100;
int graph_points = 100;
Set<Server> servers = new HashSet<Server>();

public Main(String[] args) {
Expand Down Expand Up @@ -153,6 +153,8 @@ public Main(String[] args) {
switch (kv[0]) {
case "poling_rate":
poling_rate = Integer.parseInt(kv[1]);
case "graph_points":
graph_points = Integer.parseInt(kv[1]);
case "verbose":
verbose = Integer.parseInt(kv[1]);
case "animate":
Expand Down Expand Up @@ -473,7 +475,7 @@ public void run() {
window.shares_per_min.setLcdValue(largest_share);

}
if (main_history.size() > graphing_points) {
if (main_history.size() > graph_points) {
main_history.remove(0);
}
}
Expand Down

0 comments on commit c69644a

Please sign in to comment.