diff --git a/sysutil.go b/sysutil.go index 856a0c6..d7c768a 100644 --- a/sysutil.go +++ b/sysutil.go @@ -11,5 +11,5 @@ func BootTime() time.Time { // Uptime returns the duration the system has been up. func Uptime() time.Duration { - return time.Now().Sub(btime) + return time.Since(btime) }