Skip to content

Commit f6f439e

Browse files
IGNITE-28735 Add check for zero value in denominator (#13193)
1 parent 0144ebd commit f6f439e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/ConnectionClientPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ private long averageConnectionLifeTime() {
859859
totalLifetime += (now - client.creationTime());
860860
}
861861

862-
return totalLifetime / connCnt;
862+
return connCnt != 0 ? totalLifetime / connCnt : 0;
863863
}
864864

865865
/** */

0 commit comments

Comments
 (0)