From 7d58f9fd1c051dfc5f21125fc69be354411a1959 Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Tue, 22 Aug 2023 20:45:37 +0900 Subject: [PATCH] use correct PowerModel to get process power (#875) Signed-off-by: Takuya Iwatsuka --- pkg/model/process_power.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/process_power.go b/pkg/model/process_power.go index fb01900331..4de19bad06 100644 --- a/pkg/model/process_power.go +++ b/pkg/model/process_power.go @@ -147,7 +147,7 @@ func addProcessSamplesToPowerModels(processMetrics map[uint64]*collector_metric. // add samples to estimate the platform power if ProcessPlatformPowerModel.IsEnabled() { featureValues := c.ToEstimatorValues(ProcessPlatformPowerModel.GetContainerFeatureNamesList(), true) // add process features with normalized values - ContainerPlatformPowerModel.AddContainerFeatureValues(featureValues) + ProcessPlatformPowerModel.AddContainerFeatureValues(featureValues) } // add samples to estimate the components (CPU and DRAM) power