@@ -54,10 +54,10 @@ def check_efficiency(self, args):
5454 end_time = timestamp2utcdatetime (config32 .endWorkTime )
5555 color_print (f"Previous round time: {{yellow}}from { start_time } to { end_time } {{endc}}" )
5656 if validator :
57- if validator .is_masterchain == False :
58- print (f"Validator index is greater than { config32 ['mainValidators' ]} in the previous round - no efficiency data." )
59- elif validator .get ('efficiency' ) is None :
57+ if validator .get ('efficiency' ) is None :
6058 print ('Failed to get efficiency for the previous round' )
59+ elif validator .is_masterchain is False and validator .get ('efficiency' ) != 0 :
60+ print (f"Validator index is greater than { config32 ['mainValidators' ]} in the previous round - no efficiency data." )
6161 else :
6262 efficiency = 100 if validator .efficiency > 100 else validator .efficiency
6363 color_efficiency = GetColorInt (efficiency , 90 , logic = "more" , ending = "%" )
@@ -74,7 +74,7 @@ def check_efficiency(self, args):
7474 end_time = timestamp2utcdatetime (int (get_timestamp ()))
7575 color_print (f"Current round time: {{green}}from { start_time } to { end_time } {{endc}}" )
7676 if validator :
77- if validator .is_masterchain == False :
77+ if validator .is_masterchain is False and validator . efficiency != 0 :
7878 print (f"Validator index is greater than { config34 ['mainValidators' ]} in the current round - no efficiency data." )
7979 elif (time .time () - config34 .startWorkTime ) / (config34 .endWorkTime - config34 .startWorkTime ) < 0.8 :
8080 print ("The validation round has started recently, there is not enough data yet. "
0 commit comments