fixed a bug where the field name was not capitalized hence not public, also deleted unnecessary getter

This commit is contained in:
lin committed 2026-10-06 13:52:11 +02:00
1 parent be44d008c7
commit 88b5ff98cd
3 files changed
+4 -8

No files matched your search

+2 -6
View File
@@ -6,15 +6,11 @@ import (
)
type UptimeInformation struct {
uptime float64
}
func (uptimeInfo UptimeInformation) GetUptime() (seconds float64) {
return uptimeInfo.uptime
Uptime float64
}
func (uptimeInfo UptimeInformation) FormatSeconds() string {
total := int64(math.Round(uptimeInfo.uptime))
total := int64(math.Round(uptimeInfo.Uptime))
if total < 60 {
return fmt.Sprintf("%d", total)