fixed a bug where the field name was not capitalized hence not public, also deleted unnecessary getter
This commit is contained in:
1 parent
be44d008c7
commit
88b5ff98cd
3 files changed
+4
-8
No files matched your search
@@ -37,7 +37,7 @@ func getLinuxUptime() (UptimeInformation, error) {
|
||||
busyTime, _ = strconv.ParseFloat(fields[0], 64)
|
||||
|
||||
return UptimeInformation{
|
||||
uptime: busyTime,
|
||||
Uptime: busyTime,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user