From c80adcc034624d6416bf96c5a02ca98bb438f563 Mon Sep 17 00:00:00 2001 From: shay23b Date: Mon, 20 Nov 2023 11:40:22 +0200 Subject: [PATCH] int64 -> int --- server/memphis_handlers_functions_cloud.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/memphis_handlers_functions_cloud.go b/server/memphis_handlers_functions_cloud.go index 046ad1d30..b901c73b2 100644 --- a/server/memphis_handlers_functions_cloud.go +++ b/server/memphis_handlers_functions_cloud.go @@ -248,12 +248,16 @@ func GetFunctionsDetails(functionsDetails map[string][]functionDetails) (map[str } memory := 128 * 1024 * 1024 if memoryInterface, ok := fucntionContentMap["memory"]; ok && memoryInterface != nil { - memory = int(memoryInterface.(int64)) + if memoryVal, ok := memoryInterface.(int); ok { + memory = memoryVal + } } storage := 512 * 1024 * 1024 if storageInterface, ok := fucntionContentMap["storage"]; ok && storageInterface != nil { - storage = int(storageInterface.(int64)) + if storageVal, ok := storageInterface.(int); ok { + storage = storageVal + } } functionDetails := models.FunctionResult{