Przeglądaj źródła

convert curr usage to mebibytes

Alexander Belanger 4 lat temu
rodzic
commit
f9becca119
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 }