Skip to content

Commit

Permalink
fix typo in util.ReadIntFromFile
Browse files Browse the repository at this point in the history
Signed-off-by: binjip978 <[email protected]>
  • Loading branch information
binjip978 authored and discordianfish committed May 20, 2020
1 parent 7865b2d commit b8aca74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/util/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func ReadUintFromFile(path string) (uint64, error) {
}

// ReadIntFromFile reads a file and attempts to parse a int64 from it.
func ReadIntFromFromFile(path string) (int64, error) {
func ReadIntFromFile(path string) (int64, error) {
data, err := ioutil.ReadFile(path)
if err != nil {
return 0, err
Expand Down
2 changes: 1 addition & 1 deletion sysfs/class_thermal.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func parseClassThermalZone(zone string) (ClassThermalZoneStats, error) {
if err != nil {
return ClassThermalZoneStats{}, err
}
zoneTemp, err := util.ReadIntFromFromFile(filepath.Join(zone, "temp"))
zoneTemp, err := util.ReadIntFromFile(filepath.Join(zone, "temp"))
if err != nil {
return ClassThermalZoneStats{}, err
}
Expand Down

0 comments on commit b8aca74

Please sign in to comment.