MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / readUintFromFile

Function readUintFromFile

metric/helper.go:22–32  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

20)
21
22func readUintFromFile(path string) (uint64, error) {
23 data, err := ioutil.ReadFile(path)
24 if err != nil {
25 return 0, err
26 }
27 value, err := strconv.ParseUint(strings.TrimSpace(string(data)), 10, 64)
28 if err != nil {
29 return 0, err
30 }
31 return value, nil
32}

Callers 1

updateCPUfreqMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected