Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
igroman787 committed Feb 11, 2021
1 parent a08e9ff commit acefdc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mytoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ def GetValidatorEfficiency(self, adnlAddr=None):
if adnlAddr == searchAdnlAddr:
mr = validator.get("mr")
wr = validator.get("wr")
r = (mr + wr) / 2
r = (mr + wr) / 2 * 100
return r
local.AddLog("GetValidatorEfficiency warning: efficiency not found.", "warning")
#end define
Expand Down
2 changes: 1 addition & 1 deletion mytonctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def PrintLocalStatus(validatorIndex, validatorEfficiency, validatorWallet, valid

validatorIndex_text = GetColorInt(validatorIndex, 0, logic="more")
validatorIndex_text = local.Translate("local_status_validator_index").format(validatorIndex_text)
validatorEfficiency_text = GetColorInt(validatorEfficiency, 50, logic="more")
validatorEfficiency_text = GetColorInt(validatorEfficiency, 50, logic="more", ending=" %")
validatorEfficiency_text = local.Translate("local_status_validator_efficiency").format(validatorEfficiency_text)
adnlAddr_text = local.Translate("local_status_adnl_addr").format(bcolors.Yellow(adnlAddr))
walletAddr_text = local.Translate("local_status_wallet_addr").format(bcolors.Yellow(walletAddr))
Expand Down
4 changes: 2 additions & 2 deletions translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@
"ru": "Начало следующих выборов: {0}"
},
"update_available": {
"en": "{green}MyTonCtrl update available. Please update it with `update` command.{endc}",
"ru": "{green}Доступно обновление MyTonCtrl. Пожалуйста, обновите его с помощью команды `update`.{endc}"
"en": "{green}MyTonCtrl update available. {red}Please update it with `update` command.{endc}",
"ru": "{green}Доступно обновление MyTonCtrl. {red}Пожалуйста, обновите его с помощью команды `update`.{endc}"
},
"000": {
"en": "001",
Expand Down

0 comments on commit acefdc5

Please sign in to comment.