mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
Modify the monitoring table to return field types
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ func FormatCountInt64(count int64) string {
|
||||
func FormatCountFloat64(count float64) string {
|
||||
switch {
|
||||
case count < 1000:
|
||||
return strconv.FormatFloat(count, 'f', -1, 64)
|
||||
return fmt.Sprintf("%.1f", count)
|
||||
case count < 1000000:
|
||||
return fmt.Sprintf("%.1fK", count/1000)
|
||||
case count < 1000000000:
|
||||
|
||||
Reference in New Issue
Block a user