Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from eaigner/master

Reading empty lines from /proc/stat causes panic
  • Loading branch information...
commit ca9b85a72e77e26a8c09a7622a4bf7ad0ff7b40e 2 parents 5040688 + ba25198
@mkocher mkocher authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sigar_linux.go
View
2  sigar_linux.go
@@ -25,7 +25,7 @@ func init() {
// grab system boot time
readFile(procd+"stat", func(line string) bool {
- if line[0:5] == "btime" {
+ if strings.HasPrefix(line, "btime") {
system.btime, _ = strtoull(line[6:])
return false // stop reading
}
Please sign in to comment.
Something went wrong with that request. Please try again.