Codebase list golang-procfs / b8aca74
fix typo in util.ReadIntFromFile Signed-off-by: binjip978 <binjip978@gmail.com> binjip978 authored 4 years ago Johannes 'fish' Ziemke committed 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7373 }
7474
7575 // ReadIntFromFile reads a file and attempts to parse a int64 from it.
76 func ReadIntFromFromFile(path string) (int64, error) {
76 func ReadIntFromFile(path string) (int64, error) {
7777 data, err := ioutil.ReadFile(path)
7878 if err != nil {
7979 return 0, err
6666 if err != nil {
6767 return ClassThermalZoneStats{}, err
6868 }
69 zoneTemp, err := util.ReadIntFromFromFile(filepath.Join(zone, "temp"))
69 zoneTemp, err := util.ReadIntFromFile(filepath.Join(zone, "temp"))
7070 if err != nil {
7171 return ClassThermalZoneStats{}, err
7272 }