1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

[process][freebsd] implement createTimeWithContext

This commit is contained in:
Ville Skyttä 2022-01-05 01:20:20 +02:00
parent 2f8da0a394
commit 41e2595443

View File

@ -111,7 +111,11 @@ func (p *Process) CmdlineSliceWithContext(ctx context.Context) ([]string, error)
}
func (p *Process) createTimeWithContext(ctx context.Context) (int64, error) {
return 0, common.ErrNotImplementedError
k, err := p.getKProc()
if err != nil {
return 0, err
}
return k.Start.Sec*1000 + k.Start.Usec/1000, nil
}
func (p *Process) ParentWithContext(ctx context.Context) (*Process, error) {