mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Update chromedp to fix console errors (#1521)
This commit is contained in:
15
vendor/github.com/chromedp/sysutil/sysutil.go
generated
vendored
Normal file
15
vendor/github.com/chromedp/sysutil/sysutil.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package sysutil
|
||||
|
||||
import "time"
|
||||
|
||||
var btime time.Time
|
||||
|
||||
// BootTime returns the time the system was started.
|
||||
func BootTime() time.Time {
|
||||
return btime
|
||||
}
|
||||
|
||||
// Uptime returns the duration the system has been up.
|
||||
func Uptime() time.Duration {
|
||||
return time.Now().Sub(btime)
|
||||
}
|
||||
Reference in New Issue
Block a user