Skip to content

Commit

Permalink
Merge pull request prometheus#146 from shaardie/fix_power_supply_scope
Browse files Browse the repository at this point in the history
sysfs: change power supply scope to string
  • Loading branch information
discordianfish authored Apr 3, 2019
2 parents af7bedc + b4c564e commit ea9eea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysfs/class_power_supply.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type PowerSupply struct {
PowerNow *int64 `fileName:"power_now"` // /sys/class/power_suppy/<Name>/power_now
PrechargeCurrent *int64 `fileName:"precharge_current"` // /sys/class/power_suppy/<Name>/precharge_current
Present *int64 `fileName:"present"` // /sys/class/power_suppy/<Name>/present
Scope *int64 `fileName:"scope"` // /sys/class/power_suppy/<Name>/scope
Scope string `fileName:"scope"` // /sys/class/power_suppy/<Name>/scope
SerialNumber string `fileName:"serial_number"` // /sys/class/power_suppy/<Name>/serial_number
Status string `fileName:"status"` // /sys/class/power_supply/<Name>/status
Technology string `fileName:"technology"` // /sys/class/power_suppy/<Name>/technology
Expand Down

0 comments on commit ea9eea6

Please sign in to comment.