Add cdp support for xpath scrapers (#625)

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
bnkai
2020-08-04 03:42:40 +03:00
committed by GitHub
parent 1b4a9eed36
commit 4373f9bf01
284 changed files with 133250 additions and 54 deletions

15
vendor/github.com/knq/sysutil/sysutil.go generated vendored Normal file
View 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)
}