Selaa lähdekoodia

convert curr usage to mebibytes

Alexander Belanger 4 vuotta sitten
vanhempi
sitoutus
f9becca119
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 }