Skip to content

Commit da0e63a

Browse files
author
Andrew Nikitin
committed
[INDY-1599] fix avgBackupLatency property
Signed-off-by: Andrew Nikitin <[email protected]>
1 parent ab416a1 commit da0e63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plenum/server/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def avgBackupLatency(self):
712712
len(latencies) > 0 else 0)
713713
self.latenciesByBackupsInLast[instId] = latencies
714714

715-
return self.latency_avg_for_backup_cls.get_avg(backupLatencies)
715+
return self.latency_avg_for_backup_cls.get_avg(backupLatencies) if backupLatencies else None
716716

717717
def sendLatencies(self):
718718
logger.debug("{} sending latencies".format(self))

0 commit comments

Comments
 (0)