Skip to content

Commit

Permalink
Make error messages on node startup better
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Nov 7, 2019
1 parent 4fd798c commit ae6667c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions iceleaf-ui/src/NodePanel.java
Expand Up @@ -77,6 +77,8 @@ public void runPass() throws Exception
startNode();
}

if (node == null) return;

StringBuilder sb=new StringBuilder();
int net_height = 0;
if ( node.getPeerage().getHighestSeenHeader() != null)
Expand Down Expand Up @@ -123,6 +125,7 @@ public void run()
private void startNode()
throws Exception
{
//There are too many side effects to try this more than once
start_attempt=true;
TreeMap<String, String> config_map = new TreeMap();

Expand Down
2 changes: 1 addition & 1 deletion lib/src/SnowFall.java
Expand Up @@ -144,7 +144,7 @@ public SnowFall(String filename, String seed, long size)
double runtime_estimate = (double)writes * MULTIPLICITY / rate;
double runtime_est_hours = runtime_estimate/3600.0;
double per_comp = (double)w / (double)writes;
DecimalFormat df = new DecimalFormat("0.00");
DecimalFormat df = new DecimalFormat("0.000");

logger.info(String.format("Generating snow field at %s writes per second. Estimated total runtime is %s hours. %s complete.",
df.format(rate),
Expand Down

0 comments on commit ae6667c

Please sign in to comment.