mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
Use unit for sorting topX instead of always using bytes
This commit is contained in:
@@ -32,3 +32,13 @@ func (c *Component) fixQueryColumnName(name string) string {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
func metricForTopSort(inputUnit string) string {
|
||||
switch inputUnit {
|
||||
case "pps":
|
||||
return "Packets"
|
||||
default:
|
||||
return "Bytes"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user