diff --git a/meminfo.go b/meminfo.go index cccdfcd0..ec00a624 100644 --- a/meminfo.go +++ b/meminfo.go @@ -217,13 +217,11 @@ func parseMemInfo(r io.Reader) (*Meminfo, error) { fields := strings.Fields(s.Text()) var val, valBytes uint64 - v, err := strconv.ParseUint(fields[1], 0, 64) + val, err := strconv.ParseUint(fields[1], 0, 64) if err != nil { return nil, err } - val = v - switch len(fields) { case 2: // No unit present, use the parsed the value as bytes directly.