mirror of
https://github.com/ClusterCockpit/cc-units.git
synced 2025-04-30 00:11:42 +02:00
Add measure 'instructions'
This commit is contained in:
parent
b1f37c852b
commit
dcee847b92
@ -20,6 +20,7 @@ const (
|
|||||||
Requests
|
Requests
|
||||||
Packets
|
Packets
|
||||||
Events
|
Events
|
||||||
|
Instructions
|
||||||
)
|
)
|
||||||
|
|
||||||
type MeasureData struct {
|
type MeasureData struct {
|
||||||
@ -102,6 +103,11 @@ var MeasuresMap map[Measure]MeasureData = map[Measure]MeasureData{
|
|||||||
Short: "events",
|
Short: "events",
|
||||||
Regex: "^([eE][vV]?[eE]?[nN][tT][sS]?)",
|
Regex: "^([eE][vV]?[eE]?[nN][tT][sS]?)",
|
||||||
},
|
},
|
||||||
|
Instructions: {
|
||||||
|
Long: "Instructions",
|
||||||
|
Short: "instr",
|
||||||
|
Regex: "^([iI][nN][sS][tT][rR][uU]?[cC]?[tT]?[iI]?[oO]?[nN]?[sS]?)",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// String returns the long string for the measure like 'Percent' or 'Seconds'
|
// String returns the long string for the measure like 'Percent' or 'Seconds'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user