diff --git a/toolbox/system.go b/toolbox/system.go index b2ae530..62e7b7b 100644 --- a/toolbox/system.go +++ b/toolbox/system.go @@ -1,9 +1,6 @@ package toolbox -import ( - "fmt" - "time" -) +import "time" /* System/OS-related utilities such as uptime. @@ -18,10 +15,5 @@ var timerStart = time.Now() func GetUptime() string { uptime := time.Since(timerStart) roundedUp := uptime.Round(time.Second) - days := roundedUp / (24 * time.Hour) - hours := roundedUp % (24 * time.Hour) / time.Hour - if days > 0 { - return fmt.Sprintf("%dd,%dh", days, hours) - } return roundedUp.String() }