Skip to content

Commit

Permalink
Review fixes, typo, clock()>time()
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Apr 15, 2024
1 parent 23f0e44 commit 7d6a69d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def showRPCstatus(self, server_index, fDebug):
if server_index == self.header.rpcClientsBox.currentIndex():
self.updateRPCled(fDebug)
if fDebug:
myPopUp_sb(self, "info", 'SPMT - rpc check', f"{self.rpcStausMess}")
myPopUp_sb(self, "info", 'SPMT - rpc check', f"{self.rpcStatusMess}")

def updateHWleds(self):
if self.hwStatus == 1:
Expand Down
4 changes: 2 additions & 2 deletions src/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ def splitString(text, n):

def timeThis(function, *args):
try:
start = time.clock()
start = time.time()
val = function(*args)
end = time.clock()
end = time.time()
return val, (end - start)
except Exception:
return None, None
Expand Down
2 changes: 1 addition & 1 deletion src/tabGovernance.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def itemButton(value, icon_num):

# update MN count
mnCount = self.caller.parent.cache['MN_count']
self.ui.mnCountLabel.setText("Total MN Count: <em>{mnCount}</em>")
self.ui.mnCountLabel.setText(f"Total MN Count: <em>{mnCount}</em>")
# Make room for new list
self.ui.proposalBox.setRowCount(len(proposals))

Expand Down

0 comments on commit 7d6a69d

Please sign in to comment.