mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
build(deps): bump github.com/containers/psgo from 1.3.2 to 1.4.0
Bumps [github.com/containers/psgo](https://github.com/containers/psgo) from 1.3.2 to 1.4.0. - [Release notes](https://github.com/containers/psgo/releases) - [Commits](https://github.com/containers/psgo/compare/v1.3.2...v1.4.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Valentin Rothberg

parent
282787f1ff
commit
5941894757
14
vendor/github.com/containers/psgo/psgo.go
generated
vendored
14
vendor/github.com/containers/psgo/psgo.go
generated
vendored
@ -310,6 +310,11 @@ var (
|
||||
header: "STATE",
|
||||
procFn: processState,
|
||||
},
|
||||
{
|
||||
normal: "stime",
|
||||
header: "STIME",
|
||||
procFn: processStartTime,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@ -715,6 +720,15 @@ func processTIME(p *process.Process, ctx *psContext) (string, error) {
|
||||
return fmt.Sprintf("%v", cpu), nil
|
||||
}
|
||||
|
||||
// processStartTime returns the start time of process p.
|
||||
func processStartTime(p *process.Process, ctx *psContext) (string, error) {
|
||||
sTime, err := p.StartTime()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return fmt.Sprintf("%v", sTime), nil
|
||||
}
|
||||
|
||||
// processTTY returns the controlling tty (terminal) of process p.
|
||||
func processTTY(p *process.Process, ctx *psContext) (string, error) {
|
||||
ttyNr, err := strconv.ParseUint(p.Stat.TtyNr, 10, 64)
|
||||
|
Reference in New Issue
Block a user