Просмотр исходного кода

convert curr usage to mebibytes

Alexander Belanger 4 лет назад
Родитель
Сommit
f9becca119
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/server/handlers/project/get_usage.go

+ 1 - 1
api/server/handlers/project/get_usage.go

@@ -143,5 +143,5 @@ func getResourceUsage(config *config.Config, clusters []*models.Cluster) (uint,
 		totMem += totAlloc.Memory
 	}
 
-	return totCPU / 1000, totMem / (1000 * 1000), nil
+	return totCPU / 1000, totMem / (1024 * 1024), nil
 }