Skip to content

Commit

Permalink
Remove debug logging from meminfo
Browse files Browse the repository at this point in the history
Remove debug logging in meminfo, left over from development.

Fixes: #233

Signed-off-by: Ben Kochie <[email protected]>
  • Loading branch information
SuperQ authored and pgier committed Nov 14, 2019
1 parent 8a05559 commit 3a8122e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions meminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package procfs
import (
"bufio"
"bytes"
"log"
"strconv"
"strings"

Expand Down Expand Up @@ -157,10 +156,8 @@ func parseMemInfo(info []byte) (m Meminfo, err error) {
var line string
for scanner.Scan() {
line = scanner.Text()
log.Println(line)

field := strings.Fields(line)
log.Println(field[0])
switch field[0] {
case "MemTotal:":
v, err := strconv.ParseUint(field[1], 0, 64)
Expand Down

0 comments on commit 3a8122e

Please sign in to comment.