mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-15 09:17:56 +08:00
go1.16 (#14783)
This commit is contained in:
5
vendor/github.com/prometheus/procfs/proc_stat.go
generated
vendored
5
vendor/github.com/prometheus/procfs/proc_stat.go
generated
vendored
@ -127,10 +127,7 @@ func (p Proc) Stat() (ProcStat, error) {
|
||||
)
|
||||
|
||||
if l < 0 || r < 0 {
|
||||
return ProcStat{}, fmt.Errorf(
|
||||
"unexpected format, couldn't extract comm: %s",
|
||||
data,
|
||||
)
|
||||
return ProcStat{}, fmt.Errorf("unexpected format, couldn't extract comm %q", data)
|
||||
}
|
||||
|
||||
s.Comm = string(data[l+1 : r])
|
||||
|
Reference in New Issue
Block a user