Skip to content

Commit

Permalink
bump for miner well-connected issue
Browse files Browse the repository at this point in the history
bump for miner well-connected issues described in NebraLtd/hm-diag#74
  • Loading branch information
shawaj authored Aug 12, 2021
1 parent 849fe26 commit bfb80d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config-python/config_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,11 @@ def ReadValue(self, options): # noqa: C901
ipAddress = str(wlanIP)

diagnosticsProto = diagnostics_pb2.diagnostics_v1()
diagnosticsProto.diagnostics['connected'] = str(self.p2pstatus[0][1])
diagnosticsProto.diagnostics['dialable'] = str(self.p2pstatus[1][1])
diagnosticsProto.diagnostics['height'] = str(self.p2pstatus[3][1])
diagnosticsProto.diagnostics['nat_type'] = str(self.p2pstatus[2][1])
diagnosticsProto.diagnostics['well-connected'] = str(self.p2pstatus[0][1])
diagnosticsProto.diagnostics['dialable'] = str(self.p2pstatus[2][1])
diagnosticsProto.diagnostics['height'] = str(self.p2pstatus[4][1])
diagnosticsProto.diagnostics['nat_type'] = str(self.p2pstatus[3][1])
diagnosticsProto.diagnostics['sessions'] = str(self.p2pstatus[1][1])
try:
diagnosticsProto.diagnostics['eth'] = \
open("/sys/class/net/eth0/address").readline(). \
Expand Down

0 comments on commit bfb80d4

Please sign in to comment.