Skip to content

Commit

Permalink
fix type of platform energy obtained from system (sustainable-computi…
Browse files Browse the repository at this point in the history
…ng-io#874)

Signed-off-by: Takuya Iwatsuka <[email protected]>
  • Loading branch information
tiwatsuka authored Aug 22, 2023
1 parent 7d58f9f commit a4a9430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/node_energy_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (c *Collector) updateNodeResourceUsage() {
func (c *Collector) updatePlatformEnergy() {
if platform.IsSystemCollectionSupported() {
nodePlatformEnergy, _ := platform.GetAbsEnergyFromPlatform()
c.NodeMetrics.SetNodePlatformEnergy(nodePlatformEnergy, counter, absPower)
c.NodeMetrics.SetNodePlatformEnergy(nodePlatformEnergy, gauge, absPower)
} else if model.IsNodePlatformPowerModelEnabled() {
model.UpdateNodePlatformEnergy(&c.NodeMetrics)
}
Expand Down

0 comments on commit a4a9430

Please sign in to comment.