Skip to content

Commit

Permalink
Only display superblock spacing if we have one.
Browse files Browse the repository at this point in the history
  • Loading branch information
denravonska committed Sep 26, 2018
1 parent b67cfcf commit a18af8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rpcdataacq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ UniValue rpc_getblockstats(const UniValue& params, bool fHelp)
result.pushKV("blocksizek", size_sum_blk/(double)blockcount/(double)1024);
result.pushKV("posdiff", diff_sum/(double)poscount);
if (super_count > 0)
result.pushKV("super_spacing_hrs", (((double)l_last_time-(double)l_first_time)/(double)super_count)/3600.0);
else
result.pushKV("super_spacing_hrs", "N/A");
result.pushKV("super_spacing_hrs", ((l_last_time-l_first_time)/(double)super_count)/3600.0);

result1.pushKV("averages", result);
}
{
Expand Down

0 comments on commit a18af8a

Please sign in to comment.