add more important node stats

This commit is contained in:
2026-07-08 11:47:07 +02:00
parent 8614e09004
commit b20f3b39a3
3 changed files with 35 additions and 8 deletions

View File

@@ -38,12 +38,16 @@ func any2string(in any) string {
return strconv.Itoa(val)
case float64:
return fmt.Sprintf("%.2f", val)
case float32:
return fmt.Sprintf("%.2f", val)
case []string:
return strings.Join(val, ",")
case ByteSize:
return val.String()
case time.Time:
return val.Format("2006-01-02 15:04:05")
case time.Duration:
return val.String()
case []byte:
return string(val)
case nil: