File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -85,18 +85,17 @@ type comparisonMode struct {
85
85
}
86
86
87
87
func (cm * comparisonMode ) String () string {
88
- switch cm .reportProcessor .(type ) {
89
- case geomeanProcessorPkts :
88
+ if _ , ok := cm .reportProcessor .(geomeanProcessorPkts ); ok {
90
89
return "geomean_recv_pkts"
91
- case geomeanProcessorMbits :
90
+ } else if _ , ok := cm . reportProcessor .( geomeanProcessorMbits ); ok {
92
91
return "geomean_recv_mbits"
93
- case sbsProcessorPkts :
92
+ } else if _ , ok := cm . reportProcessor .( sbsProcessorPkts ); ok {
94
93
return "sbs_recv_pkts"
95
- case sbsProcessorMbits :
94
+ } else if _ , ok := cm . reportProcessor .( sbsProcessorMbits ); ok {
96
95
return "sbs_recv_mbits"
97
- default :
98
- return "bad value"
99
96
}
97
+
98
+ return "bad value"
100
99
}
101
100
102
101
func (cm * comparisonMode ) Set (value string ) error {
You can’t perform that action at this time.
0 commit comments