Skip to content

Commit

Permalink
Again battery xps 13. Missed real edit
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusLindroth committed May 6, 2019
1 parent da55990 commit a534134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/battery/battery.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func (b *Battery) update() error {
b.present = c.ValueOf("POWER_SUPPLY_PRESENT") == "1"
b.status = c.ValueOf("POWER_SUPPLY_STATUS")

fullCharge, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_ENERGY_FULL"), 32)
currentCharge, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_ENERGY_NOW"), 32)
powerUse, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_POWER_NOW"), 32)
fullCharge, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_CHARGE_FULL"), 32)
currentCharge, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_CHARGE_NOW"), 32)
powerUse, _ := strconv.ParseFloat(c.ValueOf("POWER_SUPPLY_CURRENT_NOW"), 32)

currentPerc, _ := strconv.Atoi(c.ValueOf("POWER_SUPPLY_CAPACITY"))

Expand Down

0 comments on commit a534134

Please sign in to comment.