From 5cd01ef877f5face1902cca0e0e5f1e8a4119c39 Mon Sep 17 00:00:00 2001 From: Alexgao001 Date: Tue, 2 Jul 2024 11:22:20 +0800 Subject: [PATCH] fix the min value comparison --- x/virtualgroup/keeper/grpc_query.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/virtualgroup/keeper/grpc_query.go b/x/virtualgroup/keeper/grpc_query.go index 985d91dc2..13c8c0477 100644 --- a/x/virtualgroup/keeper/grpc_query.go +++ b/x/virtualgroup/keeper/grpc_query.go @@ -232,6 +232,7 @@ func (k Keeper) QuerySpOptimalGlobalVirtualGroupFamily(goCtx context.Context, re } } case types.Strategy_Minimal_Free_Store_Size: + freeStoreSize = math.MaxFloat64 for _, gvgfID := range stats.GlobalVirtualGroupFamilyIds { gvgFamily, found := k.GetGVGFamily(ctx, gvgfID) if !found {