Skip to content

Commit

Permalink
Allow process picker with go < 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Jun 14, 2023
1 parent 2dd35de commit 8d9ead4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion support/vimspector_process_list/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/puremourning/vimspector/support/vimspector_process_list

go 1.20
go 1.19

require github.com/shirou/gopsutil/v3 v3.23.4

Expand Down
6 changes: 5 additions & 1 deletion support/vimspector_process_list/vimspector_process_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import (
"github.com/shirou/gopsutil/v3/process"
)

const (
DateTime = "2006-01-02 15:04:05"
)

func main() {
pattern := ".*"
pattern_supplied := false
Expand Down Expand Up @@ -68,7 +72,7 @@ func main() {
}
is_running, _ := p.IsRunning()
utime, _ := p.CreateTime()
dtime := time.UnixMilli(utime).Format(time.DateTime)
dtime := time.UnixMilli(utime).Format(DateTime)

username, _ := p.Username()

Expand Down

0 comments on commit 8d9ead4

Please sign in to comment.