mirror of
https://github.com/mudler/luet.git
synced 2025-09-11 12:13:32 +00:00
update vendor
This commit is contained in:
10
vendor/github.com/opencontainers/runc/libcontainer/system/proc.go
generated
vendored
10
vendor/github.com/opencontainers/runc/libcontainer/system/proc.go
generated
vendored
@@ -71,16 +71,6 @@ func Stat(pid int) (stat Stat_t, err error) {
|
||||
return parseStat(string(bytes))
|
||||
}
|
||||
|
||||
// GetProcessStartTime is deprecated. Use Stat(pid) and
|
||||
// Stat_t.StartTime instead.
|
||||
func GetProcessStartTime(pid int) (string, error) {
|
||||
stat, err := Stat(pid)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return fmt.Sprintf("%d", stat.StartTime), nil
|
||||
}
|
||||
|
||||
func parseStat(data string) (stat Stat_t, err error) {
|
||||
// From proc(5), field 2 could contain space and is inside `(` and `)`.
|
||||
// The following is an example:
|
||||
|
Reference in New Issue
Block a user