Skip to content

Commit 5bf9252

Browse files
committed
fix issue with spaces in label names
later in the code the matches labels will be compared to the name, so store the name for later comparrison.
1 parent d84b551 commit 5bf9252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/controller/api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ public function metrics(){
234234
foreach( $this->data->DS as $value){
235235
if ( isRegex($perflabel) ){
236236
if ( preg_match( $perflabel, arr_get($value, "LABEL" ) ) ){
237-
$perflabels[] = arr_get($value, "LABEL" );
237+
$perflabels[] = arr_get($value, "NAME" );
238238
}
239239
}else {
240240
if ( $perflabel == arr_get($value, "LABEL" ) ){
241-
$perflabels[] = arr_get($value, "LABEL" );
241+
$perflabels[] = arr_get($value, "NAME" );
242242
}
243243
}
244244
}

0 commit comments

Comments
 (0)