Closed aidangill-projects closed 3 weeks ago
It seems at exactly zero minutes, it returns 'X hrs', not X:00 - silly huh:
2024/06/06 01:47:12 08:47PM up 2 days, 20 hrs, 1 user, load average: 2.47, 2.17, 2.17 panic: runtime error: index out of range [1] with length 1
I will resolve and create a pull request
Fixed in #1663
Describe the bug
I can't reproduce this, but I have gotten a few runtime panics with the following:
While uptime returns:
Which seems to be this line:
minutes, err = strconv.ParseUint(strings.Replace(hm[1], ",", "", -1), 10, 64)
If I see this again I will update + provide a fix
Environment (please complete the following information):
AIX PPC64